Jelajahi Sumber

gold_to_money 又改回 money_to_gold,统一

lizhen_gitee 9 bulan lalu
induk
melakukan
a0892f9b20

+ 2 - 2
application/api/controller/Gift.php

@@ -121,10 +121,10 @@ class Gift extends Api
                     }
 
                     // 添加赠送用户余额
-                    $gold_to_money = config('site.gold_to_money');//送金币礼物得积分
+                    $money_to_gold = config('site.money_to_gold');//送金币礼物得积分
                     $gift_plat_scale = config('site.gift_plat_scale');
 
-                    $giftmoney = bcdiv($giftvalue,$gold_to_money,2);
+                    $giftmoney = bcdiv($giftvalue,$money_to_gold,2);
 
                     $money = bcdiv(bcmul($giftmoney,100 - $gift_plat_scale,2),100,2);
                     $wallet_rs = model('wallet')->lockChangeAccountRemain($user_id,$this->auth->id,'money',$money,54,'获得礼物:'.$giftinfo["name"] . '*' . $number,'gift_user_typing',$log_id,2);

+ 2 - 2
application/api/controller/Topicdongtai.php

@@ -635,10 +635,10 @@ class Topicdongtai extends Api
                 }
 
                 // 添加赠送用户余额
-                $gold_to_money = config('site.gold_to_money');//送金币礼物得积分
+                $money_to_gold = config('site.money_to_gold');//送金币礼物得积分
                 $gift_plat_scale = config('site.gift_plat_scale');
 
-                $giftmoney = bcdiv($giftvalue,$gold_to_money,2);
+                $giftmoney = bcdiv($giftvalue,$money_to_gold,2);
 
                 $money = bcdiv(bcmul($giftmoney,100 - $gift_plat_scale,2),100,2);
                 $wallet_rs = model('wallet')->lockChangeAccountRemain($user_id,$this->auth->id,'money',$money,60,'获得礼物:'.$giftinfo["name"] . '*' . $number,'gift_user_dongtai',$log_id,2);