...
|
...
|
@@ -810,6 +810,10 @@ class OrderController extends HomeBaseController{ |
|
|
$mySign = $wxPay->getSign($data);
|
|
|
$order_no =substr($data['out_trade_no'], 0, -4);
|
|
|
$order=\db('order')->where(['order_no'=>$order_no])->find();
|
|
|
if ($order['state']==3){
|
|
|
echo "SUCCESS";
|
|
|
exit;
|
|
|
}
|
|
|
if ($Sign===$mySign && $data['return_code'] == 'SUCCESS') {
|
|
|
try{
|
|
|
Db::name('order')->where(['order_no'=>$order_no])->update(['state'=>3]);
|
...
|
...
|
|