Skip to content

Commit

Permalink
修改timeStamp为字符串类型
Browse files Browse the repository at this point in the history
  • Loading branch information
lanshe committed Dec 9, 2017
1 parent 55fb755 commit 56897e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Weixin/JSAPI/Params/JSParams/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function __onExecute($sdk, $format)
{
$data = array(
'appId' => $sdk->publicParams->appID,
'timeStamp' => time(),
'timeStamp' => strval(time()),
'nonceStr' => md5(mt_rand()),
'package' => 'prepay_id=' . $this->prepay_id,
'signType' => $sdk->publicParams->sign_type,
Expand Down

0 comments on commit 56897e9

Please sign in to comment.