feat(order): 增加订单参数打印调试

This commit is contained in:
mkm 2024-07-26 17:38:47 +08:00
parent 279cc7d903
commit ddc9a82766

View File

@ -566,6 +566,7 @@ class OrderLogic extends BaseLogic
self::setError('订单不存在');
return false;
}
d($params);
Db::startTrans();
try {
StoreOrder::update([
@ -587,7 +588,10 @@ class OrderLogic extends BaseLogic
'update_time' => time(),
], ['oid' => $order['id']]);
$financeFlow = new StoreFinanceFlow();
$financeFlow->where('order_id',$order['id'])->update(['store_id'=>$params['store_id'],'staff_id'=>$params['staff_id']]);
$res=$financeFlow->where('order_id',$order['id'])->update(['store_id'=>$params['store_id'],'staff_id'=>$params['staff_id']]);
if($res){
$order['store_id']=$params['store_id'];
}
$financeFlowLogic = new StoreFinanceFlowLogic();
$select_1 = $financeFlow->where(['order_id' => $order['id'], 'financial_pm' => 1, 'financial_type' => ['in' => 14, 15, 16]])->select();
foreach ($select_1 as $k => $v) {