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 0984329 commit c1f087c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redpack.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public function createJsBizPackage($openid, $totalFee, $outTradeNo, $sendName,$w
're_openid' => $openid,
'mch_billno' => $outTradeNo,
'client_ip' => '127.0.0.1',
'total_amount' => intval($totalFee * 100), //单位 转为分
'total_amount' => floatval($totalFee) * 100, //单位 转为分
'total_num'=>1, //红包发放总人数
'wishing'=>$wishing, //红包祝福语
'act_name'=>$actName, //活动名称
Expand Down

0 comments on commit c1f087c

Please sign in to comment.