|
@@ -1838,7 +1838,7 @@ class Party extends Api
|
|
|
|
|
|
// 获取礼物信息
|
|
// 获取礼物信息
|
|
|
|
|
|
- $giftInfo = Db::name('gift')->field('id,value,name,image,special')->where('id',$gift_id)->find();
|
|
|
|
|
|
+ $giftInfo = Db::name('gift')->field('id,value,name,image,special,is_baobi')->where('id',$gift_id)->find();
|
|
if (!$giftInfo) {
|
|
if (!$giftInfo) {
|
|
$this->error("请选择礼物!");
|
|
$this->error("请选择礼物!");
|
|
}
|
|
}
|
|
@@ -1866,6 +1866,13 @@ class Party extends Api
|
|
$platRate = $partyInfo->platRate; // 平台抽成百分比
|
|
$platRate = $partyInfo->platRate; // 平台抽成百分比
|
|
$guilderRate = $partyInfo->guilderRate; // 房主抽成百分比,包括公会房主,普通房房主
|
|
$guilderRate = $partyInfo->guilderRate; // 房主抽成百分比,包括公会房主,普通房房主
|
|
|
|
|
|
|
|
+ //爆币礼物单独比例
|
|
|
|
+ if($is_back != 1){
|
|
|
|
+ if(isset($giftInfo['is_baobi']) && $giftInfo['is_baobi'] == 1){
|
|
|
|
+ $platRate = config('site.baobi_gift_platrate');
|
|
|
|
+ $guilderRate = config('site.baobi_gift_guilderrate');
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
//getValue削减
|
|
//getValue削减
|