头条支付

feat/task1-c-wallet
devil_gong 2019-10-29 14:54:58 +08:00
parent abf692b473
commit 77f2dad2f1
1 changed files with 3 additions and 3 deletions

View File

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