lizhen_gitee vor 1 Jahr
Ursprung
Commit
23ade15107
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      application/api/controller/Eggnew.php

+ 1 - 1
application/api/controller/Eggnew.php

@@ -237,7 +237,7 @@ class Eggnew extends Api
                     'createtime' => time(),
                 ];
                 //产出比
-                $jackpot_chanchu['chanchu'] = bidiv($jackpot_chanchu['do_giftprice'],$jackpot_chanchu['jp_giftprice'],2);
+                $jackpot_chanchu['chanchubi'] = bcdiv($jackpot_chanchu['do_giftprice'],$jackpot_chanchu['jp_giftprice'],2);
                 $rs_chanchu = Db::name('egg_jackpot_chanchu')->insertGetId($jackpot_chanchu);
                 if(!$rs_chanchu){
                     Db::rollback();