修改部分日志内容

This commit is contained in:
wuhui_zzw 2023-11-20 17:46:47 +08:00
parent db1fbfcf59
commit a8bc88a75e
6 changed files with 17 additions and 16 deletions

View File

@ -47,9 +47,9 @@ class OrderBuyerCreateNotice extends BaseMessageBody
$this->processData($this->orderModel);
$this->getTemplate('order_submit_success');
$this->organizeData();
\Log::debug("新版公众号消息-创建1",$this->template_id);
\Log::debug("新版公众号消息-创建2",$this->fans->openid);
\Log::debug("新版公众号消息-创建3",$this->data);
// \Log::debug("新版公众号消息-创建1",$this->template_id);
// \Log::debug("新版公众号消息-创建2",$this->fans->openid);
// \Log::debug("新版公众号消息-创建3",$this->data);
$result = (new OfficialMessageNotice($this->temp_id,$this->fans->openid,$this->data,[],1,$this->url))->sendMessage();
if ($result['status'] == 0) {

View File

@ -48,9 +48,9 @@ class OrderBuyerPayedNotice extends BaseMessageBody
$this->processData($this->orderModel);
$this->getTemplate('order_pay_success');
$this->organizeData();
\Log::debug("新版公众号消息-支付1",$this->template_id);
\Log::debug("新版公众号消息-支付2",$this->fans->openid);
\Log::debug("新版公众号消息-支付3",$this->data);
// \Log::debug("新版公众号消息-支付1",$this->template_id);
// \Log::debug("新版公众号消息-支付2",$this->fans->openid);
// \Log::debug("新版公众号消息-支付3",$this->data);
$result = (new OfficialMessageNotice($this->temp_id,$this->fans->openid,$this->data,[],1,$this->url))->sendMessage();
if ($result['status'] == 0) {

View File

@ -68,7 +68,7 @@ class OrderCreatedListener
//订单model 不用再find一次了
$this->order = $orderModel;
\Log::debug('分销执行分销设置:' . json_encode($this->set, 256));
// \Log::debug('分销执行分销设置:' . json_encode($this->set, 256));
//验证分销插件是否开启
if (!$this->set['is_commission']) {

View File

@ -95,7 +95,7 @@ class NewUpgrateJob implements ShouldQueue
return;
}
\Log::debug('经销商升级 - 开始处理:');
\Log::debug('经销商升级 - 开始处理:',$agent['uid']);
// 默认可以升级
$upgradeRet = false;
foreach ($upgradeLevels as $level) {
@ -154,7 +154,7 @@ class NewUpgrateJob implements ShouldQueue
// 升级类
$upgrateService = new UpgrateConditionService($agent['uid'], $this->setting, $parase[1], $this->uniacid, $typeName, $order_status, $this->order, $this->uplogService);
// 升级方法
\Log::debug('===123分组方法名:' . $typeName);
// \Log::debug('===123分组方法名:' . $typeName);
$func = $this->getFunctionName($typeName);
if (!method_exists($upgrateService, $func)) {
@ -221,7 +221,7 @@ class NewUpgrateJob implements ShouldQueue
// 升级类
$upgrateService = new UpgrateConditionService($agent['uid'], $this->setting, $parase[1], $this->uniacid, $upgrade, $order_status, $this->order, $this->uplogService);
// 升级方法
\Log::debug('===123单个方法名:' . $upgrade);
// \Log::debug('===123单个方法名:' . $upgrade);
$func = $this->getFunctionName($upgrade);
// 升级条件 结果
if (!method_exists($upgrateService, $func)) {
@ -338,7 +338,7 @@ class NewUpgrateJob implements ShouldQueue
$oldUpgrade = new UpgradeService();
$upgradeLevels = $this->getUpgrateLevelsByWeight($agent,1);
if ($upgradeLevels->isEmpty()) return;
\Log::debug('经销商升级 - 文创等级 - 开始处理:');
\Log::debug('经销商升级 - 文创等级 - 开始处理:',$agent['uid']);
// 默认可以升级
$upgradeRet = false;
foreach ($upgradeLevels as $level) {

View File

@ -1993,11 +1993,11 @@ class UpgrateConditionService{
'remark' => $isReach ? '满足条件' : '不满足条件'
]);
\Log::debug('经销商升级 - 升级条件 - 直推间推人数 - 是否达到条件:',[
'需求人数' => $people,
'当前人数' => $hasNum,
'is_reach' => $isReach
]);
// \Log::debug('经销商升级 - 升级条件 - 直推间推人数 - 是否达到条件:',[
// '需求人数' => $people,
// '当前人数' => $hasNum,
// 'is_reach' => $isReach
// ]);
if($isReach) return true;
}catch(\Exception $e){

View File

@ -89,6 +89,7 @@ class WeightValue extends BaseModel{
}
DB::commit();
\Log::debug('------购买商品赠送权重值 - 处理完成------',$model->id);
}catch(\Exception $e){
\Log::debug('------购买商品赠送权重值 - 错误抛出------',$e->getMessage());
DB::rollBack();