...
|
...
|
@@ -8,6 +8,7 @@ use addons\third\model\Third; |
|
|
use app\common\library\Auth;
|
|
|
use Exception;
|
|
|
use think\addons\Controller;
|
|
|
use think\Db;
|
|
|
use think\Response;
|
|
|
use think\Session;
|
|
|
use Yansongda\Pay\Exceptions\GatewayException;
|
...
|
...
|
@@ -244,13 +245,10 @@ class Api extends Controller |
|
|
return;
|
|
|
}
|
|
|
$data = $pay->verify();
|
|
|
file_put_contents("pcl_pay_log.log", date("Y-m-d H:i:s") . "::" . json_encode($data, JSON_UNESCAPED_UNICODE) . PHP_EOL, FILE_APPEND);
|
|
|
$payamount = $type == 'alipay' ? $data['total_amount'] : $data['total_fee'] / 100;
|
|
|
$out_trade_no = $data['out_trade_no'];
|
|
|
//你可以在此编写订单逻辑
|
|
|
//判断是否已更新过支付状态
|
|
|
file_put_contents("pcl_pay_logsssssssssssssssqwe.log", date("Y-m-d H:i:s") . "::" . json_encode($out_trade_no, JSON_UNESCAPED_UNICODE) . PHP_EOL, FILE_APPEND);
|
|
|
|
|
|
$cks = Db::name('order')
|
|
|
->where(['order_no' => $data['out_trade_no']])
|
|
|
->find();
|
...
|
...
|
|