diff --git a/src/addon/cases/model/Enterprise.php b/src/addon/cases/model/Enterprise.php index a0e109cf0..301e8ec56 100644 --- a/src/addon/cases/model/Enterprise.php +++ b/src/addon/cases/model/Enterprise.php @@ -253,7 +253,7 @@ class Enterprise extends BaseModel */ public function deleteVideo($condition) { - file_put_contents(__DIR__ . '/debug.txt', var_export($condition,true)); + // file_put_contents(__DIR__ . '/debug.txt', var_export($condition,true)); $check_condition = array_column($condition, 2, 0); $site_id = $check_condition['site_id'] ?? ''; if ($site_id === '') { diff --git a/src/addon/form/api/controller/Form.php b/src/addon/form/api/controller/Form.php index b07dd0ea6..e476333b2 100644 --- a/src/addon/form/api/controller/Form.php +++ b/src/addon/form/api/controller/Form.php @@ -54,7 +54,7 @@ class Form extends BaseApi ['form_type', '=', 'custom' ] ]; $data = (new FormModel())->getFormInfo($condition, 'json_data,form_name'); - file_put_contents(__DIR__ . '/debug.txt', var_export($data,true)); + // file_put_contents(__DIR__ . '/debug.txt', var_export($data,true)); if (!empty($data['data'])) { $data['data']['json_data'] = json_decode($data['data']['json_data'], true); // $data['data']['title'] = model('form')->getValue(['id'=>$form_id]); diff --git a/src/addon/personnel/model/Enterprise.php b/src/addon/personnel/model/Enterprise.php index dbc85aee1..3c877a5d5 100644 --- a/src/addon/personnel/model/Enterprise.php +++ b/src/addon/personnel/model/Enterprise.php @@ -253,7 +253,7 @@ class Enterprise extends BaseModel */ public function deleteVideo($condition) { - file_put_contents(__DIR__ . '/debug.txt', var_export($condition,true)); + // file_put_contents(__DIR__ . '/debug.txt', var_export($condition,true)); $check_condition = array_column($condition, 2, 0); $site_id = $check_condition['site_id'] ?? ''; if ($site_id === '') { diff --git a/src/addon/personnel/shop/controller/Personnel.php b/src/addon/personnel/shop/controller/Personnel.php index 44d44b56f..c13a971f6 100644 --- a/src/addon/personnel/shop/controller/Personnel.php +++ b/src/addon/personnel/shop/controller/Personnel.php @@ -25,7 +25,7 @@ class Personnel extends BaseShop } else { $config['value'] = json_decode($config['value'],true); - file_put_contents(__DIR__ . '/debug.txt', var_export($config,true)); + // file_put_contents(__DIR__ . '/debug.txt', var_export($config,true)); $this->assign('config', $config); return $this->fetch('personnel/diy'); } diff --git a/src/addon/pointexchange/shop/controller/Pointexchange.php b/src/addon/pointexchange/shop/controller/Pointexchange.php index 74f726c24..eccbed204 100644 --- a/src/addon/pointexchange/shop/controller/Pointexchange.php +++ b/src/addon/pointexchange/shop/controller/Pointexchange.php @@ -86,7 +86,7 @@ class Pointexchange extends BaseShop $list = $exchange_order_model->getExchangePageList($condition, $page, $page_size, $order, $field, 'eo', [ [ 'member m', 'm.member_id=eo.member_id', 'left' ] ]); - file_put_contents(__DIR__ . '/debug.txt', var_export($condition,true)); + // file_put_contents(__DIR__ . '/debug.txt', var_export($condition,true)); return $list; } else { diff --git a/src/addon/weapp/model/Weapp.php b/src/addon/weapp/model/Weapp.php index e13212be7..903a9a0ee 100644 --- a/src/addon/weapp/model/Weapp.php +++ b/src/addon/weapp/model/Weapp.php @@ -468,12 +468,12 @@ class Weapp extends BaseModel $server = $this->app->server; $message = $server->getMessage(); Log::write('微信小程序消息推送:' . json_encode($message)); - file_put_contents(__DIR__ . '/debug.txt', var_export($message,true)); + // file_put_contents(__DIR__ . '/debug.txt', var_export($message,true)); if (isset($message[ 'MsgType' ])) { switch ( $message[ 'MsgType' ] ) { case 'event': $this->app->server->push(function($res) { - file_put_contents(__DIR__ . '/debug1.txt', var_export($res,true)); + // file_put_contents(__DIR__ . '/debug1.txt', var_export($res,true)); // 商品审核结果通知 if ($res[ 'Event' ] == 'open_product_spu_audit' && addon_is_exit('shopcomponent', $this->site_id)) { model('shopcompoent_goods')->update([ diff --git a/src/app/model/order/ordercreate/PromotionTool.php b/src/app/model/order/ordercreate/PromotionTool.php index 9a6cc5534..8b23f194a 100644 --- a/src/app/model/order/ordercreate/PromotionTool.php +++ b/src/app/model/order/ordercreate/PromotionTool.php @@ -712,7 +712,7 @@ trait PromotionTool //------------- /* $all_info = $manjian_model->getManjianInfo([['manjian_type', '=', 1], ['site_id', '=', $this->site_id], ['status', '=', 1]], 'manjian_name,type,goods_ids,rule_json,manjian_id')['data']; $goods_list = $this->goods_list; - file_put_contents(__DIR__ . '/debug.txt', var_export($all_info,true)); + // file_put_contents(__DIR__ . '/debug.txt', var_export($all_info,true)); //存在全场满减(不考虑部分满减情况) if (!empty($all_info)) {//满减默认 $discount_array = $this->getManjianDiscountMoney($all_info); diff --git a/src/extend/Stat.php b/src/extend/Stat.php index 3616ff7ba..de613895f 100644 --- a/src/extend/Stat.php +++ b/src/extend/Stat.php @@ -228,7 +228,7 @@ class Stat private $site_id; public function __construct($filename, $type,$site_id = 1) { - file_put_contents(__DIR__ . '/debug.txt', var_export($site_id,true).PHP_EOL,FILE_APPEND); + // file_put_contents(__DIR__ . '/debug.txt', var_export($site_id,true).PHP_EOL,FILE_APPEND); $this->filename = $filename; $this->json_stat['stat_shop']['site_id'] = $site_id; $this->json_stat['stat_shop_hour']['site_id'] = $site_id;