chore: 注释掉file_put_contents
This commit is contained in:
@@ -253,7 +253,7 @@ class Enterprise extends BaseModel
|
|||||||
*/
|
*/
|
||||||
public function deleteVideo($condition)
|
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);
|
$check_condition = array_column($condition, 2, 0);
|
||||||
$site_id = $check_condition['site_id'] ?? '';
|
$site_id = $check_condition['site_id'] ?? '';
|
||||||
if ($site_id === '') {
|
if ($site_id === '') {
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ class Form extends BaseApi
|
|||||||
['form_type', '=', 'custom' ]
|
['form_type', '=', 'custom' ]
|
||||||
];
|
];
|
||||||
$data = (new FormModel())->getFormInfo($condition, 'json_data,form_name');
|
$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'])) {
|
if (!empty($data['data'])) {
|
||||||
$data['data']['json_data'] = json_decode($data['data']['json_data'], true);
|
$data['data']['json_data'] = json_decode($data['data']['json_data'], true);
|
||||||
// $data['data']['title'] = model('form')->getValue(['id'=>$form_id]);
|
// $data['data']['title'] = model('form')->getValue(['id'=>$form_id]);
|
||||||
|
|||||||
@@ -253,7 +253,7 @@ class Enterprise extends BaseModel
|
|||||||
*/
|
*/
|
||||||
public function deleteVideo($condition)
|
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);
|
$check_condition = array_column($condition, 2, 0);
|
||||||
$site_id = $check_condition['site_id'] ?? '';
|
$site_id = $check_condition['site_id'] ?? '';
|
||||||
if ($site_id === '') {
|
if ($site_id === '') {
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ class Personnel extends BaseShop
|
|||||||
} else {
|
} else {
|
||||||
|
|
||||||
$config['value'] = json_decode($config['value'],true);
|
$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);
|
$this->assign('config', $config);
|
||||||
return $this->fetch('personnel/diy');
|
return $this->fetch('personnel/diy');
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ class Pointexchange extends BaseShop
|
|||||||
$list = $exchange_order_model->getExchangePageList($condition, $page, $page_size, $order, $field, 'eo', [
|
$list = $exchange_order_model->getExchangePageList($condition, $page, $page_size, $order, $field, 'eo', [
|
||||||
[ 'member m', 'm.member_id=eo.member_id', 'left' ]
|
[ '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;
|
return $list;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -468,12 +468,12 @@ class Weapp extends BaseModel
|
|||||||
$server = $this->app->server;
|
$server = $this->app->server;
|
||||||
$message = $server->getMessage();
|
$message = $server->getMessage();
|
||||||
Log::write('微信小程序消息推送:' . json_encode($message));
|
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' ])) {
|
if (isset($message[ 'MsgType' ])) {
|
||||||
switch ( $message[ 'MsgType' ] ) {
|
switch ( $message[ 'MsgType' ] ) {
|
||||||
case 'event':
|
case 'event':
|
||||||
$this->app->server->push(function($res) {
|
$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)) {
|
if ($res[ 'Event' ] == 'open_product_spu_audit' && addon_is_exit('shopcomponent', $this->site_id)) {
|
||||||
model('shopcompoent_goods')->update([
|
model('shopcompoent_goods')->update([
|
||||||
|
|||||||
@@ -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'];
|
/* $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;
|
$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)) {//满减默认
|
if (!empty($all_info)) {//满减默认
|
||||||
$discount_array = $this->getManjianDiscountMoney($all_info);
|
$discount_array = $this->getManjianDiscountMoney($all_info);
|
||||||
|
|||||||
@@ -228,7 +228,7 @@ class Stat
|
|||||||
private $site_id;
|
private $site_id;
|
||||||
|
|
||||||
public function __construct($filename, $type,$site_id = 1) {
|
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->filename = $filename;
|
||||||
$this->json_stat['stat_shop']['site_id'] = $site_id;
|
$this->json_stat['stat_shop']['site_id'] = $site_id;
|
||||||
$this->json_stat['stat_shop_hour']['site_id'] = $site_id;
|
$this->json_stat['stat_shop_hour']['site_id'] = $site_id;
|
||||||
|
|||||||
Reference in New Issue
Block a user