Browse Source

调试

undefined
v-Brocloni 4 years ago
parent
commit
8c5b3d6cf4
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      addons/epay/library/Service.php

+ 4
- 1
addons/epay/library/Service.php View File

@@ -186,9 +186,12 @@ class Service
return false;
}
try {
file_put_contents(ROOT_PATH . '/runtime/log/' . date('Ym') ."/".date("d"). '.log', "开始获取参数" . PHP_EOL, FILE_APPEND);

$pay = new Pay(self::getConfig($type));
$data = $type == 'wechat' ? file_get_contents("php://input") : request()->post('', null, 'trim');
file_put_contents(APP_PATH . '/log/' . date('Y-m-d') . '.log', json_encode($data) . PHP_EOL, FILE_APPEND);
file_put_contents(ROOT_PATH . '/runtime/log/' . date('Ym') ."/".date("d"). '.log', json_encode($data) . PHP_EOL, FILE_APPEND);

$data = $pay->driver($type)->gateway()->verify($data);

if ($type == 'alipay') {


Loading…
Cancel
Save