提交 77f2dad2 编写于 作者: D devil_gong

头条支付

上级 abf692b4
......@@ -57,19 +57,19 @@ class ToutiaoService
'merchant_id' => $merchant_id,
'app_id' => $app_id,
'sign_type' => 'MD5',
'timestamp' => time(),
'timestamp' => (string) time(),
'version' => '2.0',
'trade_type' => 'H5',
'product_code' => 'pay',
'payment_type' => 'direct',
'outorderno' => $order['order_no'],
'uid' => md5($params['user']['id']),
'total_amount' => intval($order['total_price']*100),
'total_amount' => (string) $order['total_price']*100,
'currency' => 'CNY',
'subject' => '订单支付',
'body' => $order['order_no'],
'trade_time' => $order['add_time'],
'valid_time' => intval(MyC('common_order_close_limit_time', 30, true))*60,
'valid_time' => (string) intval(MyC('common_order_close_limit_time', 30, true))*60,
'notify_url' => __MY_URL__,
];
$order_info['sign'] = (new \base\Toutiao())->PaySignCreated($order_info, $secret);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册