Bladeren bron

update

master
DengBiao 1 jaar geleden
bovenliggende
commit
b5811805de
2 gewijzigde bestanden met toevoegingen van 15 en 1 verwijderingen
  1. +2
    -1
      src/applet/app/controllers/Alipay/PayController.php
  2. +13
    -0
      src/applet/app/controllers/CallBackController.php

+ 2
- 1
src/applet/app/controllers/Alipay/PayController.php Bestand weergeven

@@ -30,7 +30,7 @@ class PayController extends ControllerBase
public function tradeCreateAction()
{
if ($this->request->isPost()) {
$args = $this->request->getJsonRawBody(true);
$args = $this->request->getJsonRawBody(true);
$this->logger($args, 'tradeCreate', true);

$config["pay_ali_app_id"] = $args["config"]["pay_ali_app_id"] ?? "2021004101651996";
@@ -84,6 +84,7 @@ class PayController extends ControllerBase
$this->api([
"code" => $result["data"]["code"] ?? "",
"msg" => $result["data"]["msg"] ?? "",
"date" => $result["data"]["send_pay_date"] ?? "",
"out_trade_no" => $result["data"]["out_trade_no"] ?? "",
"trade_no" => $result["data"]["trade_no"] ?? "",
"trade_status" => $result["data"]["trade_status"] ?? "",


+ 13
- 0
src/applet/app/controllers/CallBackController.php Bestand weergeven

@@ -163,4 +163,17 @@ class CallBackController extends \Phalcon\Mvc\Controller
}
}
}

/**
* 支付宝 - 公共异步回调
*/
public function wxpayAsyncNotifyCallBackAction()
{
$args = $this->request->get();
$this->logger($args, 'wxpayAsyncNotifyCallBack', true);

if ($this->request->isPost()) {
$this->logger($_POST, 'wxpayAsyncNotifyCallBack_post', true);
}
}
}

Laden…
Annuleren
Opslaan