提交 33825e93 编写于 作者: D devil_gong

头条支付

上级 0eb0a4df
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册