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

View File

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

View File

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