...
|
...
|
@@ -608,7 +608,7 @@ class OrderController extends HomeBaseController{ |
|
|
try {
|
|
|
Db::name('users')->where('id', $user['id'])->setDec('fee',$order['price']);
|
|
|
Db::name('order')->where('id',$order['id'])->update(['state'=>3]);
|
|
|
Db::name('fee_log')->insert(['user_id'=>$user['id'],'fee'=>$price,'type'=>2,'add_time'=>time()]);
|
|
|
Db::name('fee_log')->insert(['user_id'=>$user['id'],'fee'=>$order['price'],'type'=>2,'add_time'=>time()]);
|
|
|
// 提交事务
|
|
|
Db::commit();
|
|
|
} catch (\Exception $e) {
|
...
|
...
|
|