作者 anyv
1 个管道 的构建 通过 耗费 0 秒

支付测试

... ... @@ -91,7 +91,8 @@ class PayController extends HomeBaseController
return 'Order not exist.'; // 告诉微信,我已经处理完了,订单没找到,别再通知我了
}
if($successful){
Db::startTrans();
try {
$update['state'] = 2;
//更新订单状态为待发货
Db::name('indent')->where('order_number',$out_trade_no)->update($update);
... ... @@ -246,12 +247,17 @@ class PayController extends HomeBaseController
}
}
cache('a1',"789");
Db::commit();
} catch (Exception $e) {
Db::rollback();
}
/*cache('a1',"789");
$bird = new BirdController;
$createOrder = $bird -> createOrder($order['id']);
cache('yuyue1',$createOrder);
$takeOrder = $bird -> takeOrder($order['id']);
cache('dingyue1',$takeOrder);
cache('dingyue1',$takeOrder);*/
}
return true; // 返回处理完成
});
... ...