We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在做Api接口时返回给前端的timeStamp类型是Int类型,当jsApi直接调用此返回参数时,报错timeStamp不存在,改为String类型就好了,建议直接在生成支付参数时就改为String类型
timeStamp
Int
jsApi
timeStamp不存在
String
public function pay(array $config_biz = []) { if (is_null($this->user_config->get('app_id'))) { throw new InvalidArgumentException('Missing Config -- [app_id]'); } $payRequest = [ 'appId' => $this->user_config->get('app_id'), - 'timeStamp' => time(), + 'timeStamp' => (string)time(), 'nonceStr' => $this->createNonceStr(), 'package' => 'prepay_id='.$this->preOrder($config_biz)['prepay_id'], 'signType' => 'MD5', ]; $payRequest['paySign'] = $this->getSign($payRequest); return $payRequest; }
The text was updated successfully, but these errors were encountered:
256a5f2
感谢支持
Sorry, something went wrong.
No branches or pull requests
问题描述
在做Api接口时返回给前端的
timeStamp
类型是Int
类型,当jsApi
直接调用此返回参数时,报错timeStamp不存在
,改为String
类型就好了,建议直接在生成支付参数时就改为String
类型代码
The text was updated successfully, but these errors were encountered: