chore: 注释掉file_put_contents

This commit is contained in:
2025-11-24 16:04:44 +08:00
parent be65996398
commit 3effc03a19
8 changed files with 9 additions and 9 deletions

View File

@@ -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 === '') {

View File

@@ -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]);

View File

@@ -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 === '') {

View File

@@ -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');
}

View File

@@ -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 {

View File

@@ -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([