Skip to content

Commit

Permalink
公众号支付
Browse files Browse the repository at this point in the history
修复元转分的精度问题
  • Loading branch information
dedemao authored May 13, 2021
1 parent 047b03c commit 989fe1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jsapi.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ public function createJsBizPackage($openid, $totalFee, $outTradeNo, $orderName,
'openid' => $openid, //rade_type=JSAPI,此参数必传
'out_trade_no' => $outTradeNo,
'spbill_create_ip' => '127.0.0.1',
'total_fee' => intval($totalFee * 100), //单位 转为分
'total_fee' => floatval($totalFee) * 100, //单位 转为分
'trade_type' => 'JSAPI',
);
$unified['sign'] = self::getSign($unified, $config['key']);
Expand Down

0 comments on commit 989fe1e

Please sign in to comment.