...
|
...
|
@@ -43,7 +43,7 @@ class OrderController extends HomeBaseController{ |
|
|
];
|
|
|
try{
|
|
|
Db::startTrans();
|
|
|
Db::name('users')->where('users_id',$users_id)->update(['is_use'=>1,'order_no'=>$order['order_no']]);
|
|
|
Db::name('users')->where('id',$users_id)->update(['is_use'=>1,'order_no'=>$order['order_no']]);
|
|
|
Db::name('order')->insert($order);
|
|
|
}catch (\Exception $exception){
|
|
|
Db::rollback();
|
...
|
...
|
|