|
@@ -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);
|