lizhen_gitee 1 éve
szülő
commit
23ade15107
1 módosított fájl, 1 hozzáadás és 1 törlés
  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();