|
@@ -93,12 +93,13 @@ class ActiveProc {
|
|
$shenmiaoInfo->activeDic->$type->totalNum += $num;
|
|
$shenmiaoInfo->activeDic->$type->totalNum += $num;
|
|
|
|
|
|
$shenmo = GameConfig::shenmiao_getItem($shenmiaoInfo->activeDic->$type->id);
|
|
$shenmo = GameConfig::shenmiao_getItem($shenmiaoInfo->activeDic->$type->id);
|
|
- if($shenmo->discount != 0){
|
|
|
|
- $sList = explode(',', $shenmo->cost);
|
|
|
|
- $costVal = $sList[1] - $sList[1]*$shenmo->discount/100;
|
|
|
|
- $costStr = $sList[0].','.$costVal*$num;
|
|
|
|
- StoreProc::removeItemFromStore($req->userInfo->game->store,$sList[0],$costVal*$num);
|
|
|
|
|
|
+
|
|
|
|
+ $sList = explode(',', $shenmo->cost);
|
|
|
|
+ $costVal = $sList[1];
|
|
|
|
+ if($shenmo->discount != 0){
|
|
|
|
+ $costVal = $sList[1]*$num*$shenmo->discount/100;
|
|
}
|
|
}
|
|
|
|
+ StoreProc::removeItemFromStore($req->userInfo->game->store,$sList[0],$costVal);
|
|
|
|
|
|
$tag = false;
|
|
$tag = false;
|
|
$n = 0;
|
|
$n = 0;
|