作者 潘浩文
1 个管道 的构建 通过 耗费 1 秒

XIAOPAN

... ... @@ -760,8 +760,8 @@ class OrderController extends HomeBaseController{
if ($Sign===$mySign && $data['return_code'] == 'SUCCESS') {
try{
Db::name('order')->where(['order_no'=>$order_no])->update(['state'=>3]);
Db::name('fee_log')->insert(['user_id'=>$order['users_id'],'type'=>2,'fee'=>($order['money']-$order['group_money'])]);
Db::name('users')->where('id',$order['users_id'])->setDec('fee',($order['money']-$order['group_money']));
Db::name('fee_log')->insert(['user_id'=>$order['users_id'],'type'=>2,'fee'=>($order['price']-$order['group_money'])]);
Db::name('users')->where('id',$order['users_id'])->setDec('fee',($order['price']-$order['group_money']));
}catch (\Exception $exception){
$this->apiResponse(301,'error:'.$exception->getMessage());
}
... ...