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