mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2024-11-30 10:59:47 +08:00
头条支付
This commit is contained in:
parent
0eb0a4df98
commit
33825e936c
@ -52,7 +52,6 @@ class ToutiaoService
|
||||
// 头条需要的订单信息
|
||||
$merchant_id = '1900017261';
|
||||
$app_id = '800172615976';
|
||||
$secret = '4xi2kcrzgancnanghtafqtqrwgy5534itichypud';
|
||||
$order_info = [
|
||||
'merchant_id' => $merchant_id,
|
||||
'app_id' => $app_id,
|
||||
@ -92,7 +91,8 @@ class ToutiaoService
|
||||
}
|
||||
|
||||
// 签名
|
||||
$order_info['sign'] = (new \base\Toutiao())->PaySignCreated($order_info, $secret);
|
||||
$app_secret = '9ea496422c189390d2d3ec8eec597fbcf3e1e5a7';
|
||||
$order_info['sign'] = (new \base\Toutiao())->PaySignCreated($order_info, $app_secret);
|
||||
|
||||
// 返回数据
|
||||
$result = [
|
||||
|
@ -237,8 +237,7 @@ Page({
|
||||
console.log(res.data.data.order_info)
|
||||
tt.pay({
|
||||
orderInfo: res.data.data.order_info,
|
||||
//service: res.data.data.service,
|
||||
service: 1,
|
||||
service: res.data.data.service,
|
||||
_debug: 1,
|
||||
getOrderStatus(res) {
|
||||
let { out_order_no } = res;
|
||||
|
Loading…
Reference in New Issue
Block a user