作者 郭文星

'123'

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