作者 郭文星

'123'

@@ -285,15 +285,15 @@ class Client extends Base @@ -285,15 +285,15 @@ class Client extends Base
285 $order_no=$this->postParam['order_no']; 285 $order_no=$this->postParam['order_no'];
286 Db::startTrans(); 286 Db::startTrans();
287 try{ 287 try{
288 - $order_no=time().rand(10000,99999); 288 + $new_order_no=time().rand(10000,99999);
289 //获取到订单信息 289 //获取到订单信息
290 $res=Db::name('verification_order')->where(['order_no'=>$order_no])->find(); 290 $res=Db::name('verification_order')->where(['order_no'=>$order_no])->find();
291 if($res){ 291 if($res){
292 $res=Db::name('verification_order')->where(['id'=>$res['id']])->update([ 292 $res=Db::name('verification_order')->where(['id'=>$res['id']])->update([
293 - 'order_no'=>$order_no 293 + 'order_no'=>$new_order_no
294 ]); 294 ]);
295 } 295 }
296 - $res = (new \app\api\controller\v1\Wechat())->prepare_order($order_no); 296 + $res = (new \app\api\controller\v1\Wechat())->prepare_order($new_order_no);
297 Db::commit(); 297 Db::commit();
298 }catch (Exception $e){ 298 }catch (Exception $e){
299 Db::rollback(); 299 Db::rollback();