|
@@ -288,10 +288,8 @@ class Pay extends Controller
|
|
|
$out_trade_no = $result['out_trade_no'];
|
|
|
}
|
|
|
$order = Db::name('store_order_info_order')->where('order_no',$out_trade_no)->find();
|
|
|
- if ($order['status']==1) return true;
|
|
|
-
|
|
|
+ if ($order['status']==1) return false;
|
|
|
if (!$order) return false;
|
|
|
-
|
|
|
Db::name('store_order_info_order')
|
|
|
->where('order_no',$out_trade_no)
|
|
|
->update(['status'=>1,'pay_at'=>date('Y-m-d H:i:s'),'return_success_info'=>json_encode($result,true)]);
|