作者 潘浩文
1 个管道 的构建 通过 耗费 2 秒

XIAOPAN

... ... @@ -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]);
... ...