baidu pay

feat/task1-c-wallet
devil_gong 2019-07-18 14:13:24 +08:00
parent f5559c8fc4
commit 23b1f35962
2 changed files with 12 additions and 2 deletions

View File

@ -155,8 +155,18 @@ class Baidu
'tpOrderId' => $params['order_no'],
'dealTitle' => $params['name'],
'signFieldsRange' => 1,
'bizInfo' => '',
];
$biz_info = [
'tpData' => [
'appKey' => $this->config['appkey'],
'dealId' => $this->config['dealid'],
'tpOrderId' => $params['order_no'],
'totalAmount' => (float) $params['total_price'],
'returnData' => (object) [],
'displayData' => (object) [],
],
];
$data['bizInfo'] = json_encode($biz_info, JSON_UNESCAPED_UNICODE);
$data['rsaSign'] = $this->SignWithRsa($data);
return DataReturn('处理成功', 0, $data);

View File

@ -57,7 +57,7 @@ App({
// 请求地址
// request_url: "{{request_url}}",
request_url: 'http://tp5-dev.com/',
request_url: 'https://test.shopxo.net/',
//request_url: 'https://test.shopxo.net/',
// 基础信息
application_title: "{{application_title}}",