|
@@ -90,7 +90,15 @@ class ActiveProc {
|
|
$costNum = $dic->price * $num;
|
|
$costNum = $dic->price * $num;
|
|
my_Assert($baseInfo->cash >= $costNum, ErrCode::notenough_cash_msg);
|
|
my_Assert($baseInfo->cash >= $costNum, ErrCode::notenough_cash_msg);
|
|
|
|
|
|
- req()->userInfo->game->base()->Consume_Cash($costNum);
|
|
|
|
|
|
+ req()->userInfo->game->base()->Consume_Cash($costNum);
|
|
|
|
+ if ($costId == 801022)
|
|
|
|
+ {
|
|
|
|
+ $costId = 3320001;
|
|
|
|
+ }
|
|
|
|
+ else
|
|
|
|
+ {
|
|
|
|
+ $costId = 3330001;
|
|
|
|
+ }
|
|
StoreProc::AddMultiItemInStore($costId.','.$num);
|
|
StoreProc::AddMultiItemInStore($costId.','.$num);
|
|
UserProc::updateUserInfo();
|
|
UserProc::updateUserInfo();
|
|
return Resp::ok(array(# # 返回值
|
|
return Resp::ok(array(# # 返回值
|