头条支付

This commit is contained in:
devil_gong 2019-10-29 15:37:35 +08:00
parent 0eb0a4df98
commit 33825e936c
2 changed files with 3 additions and 4 deletions

View File

@ -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 = [

View File

@ -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;