From 77f2dad2f1a382fd62222c3890e455f72e3c5357 Mon Sep 17 00:00:00 2001 From: devil_gong Date: Tue, 29 Oct 2019 14:54:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=B4=E6=9D=A1=E6=94=AF=E4=BB=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/service/ToutiaoService.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/application/service/ToutiaoService.php b/application/service/ToutiaoService.php index a01c7230e..629fdc37b 100644 --- a/application/service/ToutiaoService.php +++ b/application/service/ToutiaoService.php @@ -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); -- GitLab