@@ -10,6 +10,7 @@ class Payment extends \think\Controller
{
public function notify(){
$paytype = input('paytype','wechat');
+ $paytype = 'alipay';
$pay = Service::checkNotify($paytype);
filePut('[payment][receive]异步回调开始:'.json_encode($pay));
@@ -93,7 +93,7 @@ class Pay extends Api
//'method' => 'miniapp',
'method' => 'app',
//'openid' => $openid,
- 'notifyurl' => $this->request->root(true) . '/notify.php',
+ 'notifyurl' => $this->request->root(true) . '/notify.php?paytype='.$pay_type,
'returnurl' => '',
];
$res = Service::submitOrder($params);
@@ -37,7 +37,7 @@ class Paymentdo
}
//获取到它使用的支付接口
//$pay = new Pay($info['payment_class']);
- //Db::startTrans(); 修改为:充值+扣款,防止扣款失败时充值也回滚
+
//if ($rs = $pay->receive())
if (1 === 1)