settter
parent
2345115913
commit
ca2f391843
|
@ -369,6 +369,7 @@ class Business extends Base
|
|||
|
||||
$payData['sign'] = generate_sign($payData, config("wechat.key"));
|
||||
$payData['order_num'] = $order->order_num;
|
||||
|
||||
Db::commit();
|
||||
return $this->json(0, "success", [
|
||||
"payData" => $payData
|
||||
|
|
|
@ -82,9 +82,9 @@ class Recharge extends Base
|
|||
*
|
||||
* @throws \EasyWeChat\Kernel\Exceptions\Exception
|
||||
*/
|
||||
public function notify()
|
||||
{
|
||||
|
||||
public function notify(){
|
||||
if ($this->request->isPost()) {
|
||||
$this->log("回调触发了");
|
||||
$app = WechatPay::getInstance();
|
||||
$response = $app->handlePaidNotify(function ($message, $fail) {
|
||||
// $aa = '{"appid":"wxa02e44170bc722cd","bank_type":"OTHERS","cash_fee":"1","fee_type":"CNY","is_subscribe":"N","mch_id":"1605090111","nonce_str":"60f7d8a1e4ac8","openid":"oKrEm0ehgsy2ZTWzEva4tbLuUgFw","out_trade_no":"16268555858753004863","result_code":"SUCCESS","return_code":"SUCCESS","sign":"DB3F6CDCB7FBB3B9DDF7C0CC8BBD5AAD","time_end":"20210721162000","total_fee":"1","trade_type":"JSAPI","transaction_id":"4200001200202107217942681078"}';
|
||||
|
@ -146,7 +146,7 @@ class Recharge extends Base
|
|||
});
|
||||
|
||||
$response->send();
|
||||
|
||||
}
|
||||
}
|
||||
/**
|
||||
* 记录订单日志
|
||||
|
|
Loading…
Reference in New Issue