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

意见修改

... ... @@ -62,8 +62,8 @@ class PayController extends WeChatBaseController
}
public function demo(){
var_dump(cache('re'));
var_dump(cache('changecode'));
var_dump(cache('result'));
// var_dump(cache('changecode'));
// var_dump(cache('order'));
}
... ... @@ -88,6 +88,7 @@ class PayController extends WeChatBaseController
$app = new Application($this->options);
$payment = $app->payment;
$result = $payment->prepare($order);
cache('result',$result);
if ($result->return_code == 'SUCCESS' && $result->result_code == 'SUCCESS'){
//判断支付并发情况
// if (Db::name('light_order')->where(['light_id'=>$data['light_id'],'status'=>1,'end_time'=>['>',time()]])->find()){
... ...