DengBiao vor 1 Jahr
Ursprung
Commit
b5811805de
2 geänderte Dateien mit 15 neuen und 1 gelöschten Zeilen
  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 Datei anzeigen

@@ -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 Datei anzeigen

@@ -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…
Abbrechen
Speichern