|
@@ -120,8 +120,7 @@ class StoreProc {
|
|
|
|
|
|
UserProc::updateUserInfo();
|
|
UserProc::updateUserInfo();
|
|
|
|
|
|
- return Resp::ok(array(
|
|
|
|
- "ret" => 'ok',));
|
|
|
|
|
|
+ return Resp::ok(ctx()->store());
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -168,10 +167,10 @@ class StoreProc {
|
|
|
|
|
|
$store->weaponReward->$npcid->$type[] = $weaponId;
|
|
$store->weaponReward->$npcid->$type[] = $weaponId;
|
|
|
|
|
|
-// ctx()->store = $store;
|
|
|
|
|
|
+ ctx()->store = $store;
|
|
|
|
|
|
UserProc::updateUserInfo();
|
|
UserProc::updateUserInfo();
|
|
- return Resp::ok();
|
|
|
|
|
|
+ return Resp::ok($store);
|
|
}
|
|
}
|
|
|
|
|
|
/*
|
|
/*
|
|
@@ -199,7 +198,7 @@ class StoreProc {
|
|
$retArr = array_merge($retArr, $pArr);
|
|
$retArr = array_merge($retArr, $pArr);
|
|
ctx()->store()->weaponPool->$npcid->$type = $retArr;
|
|
ctx()->store()->weaponPool->$npcid->$type = $retArr;
|
|
}
|
|
}
|
|
- } else {
|
|
|
|
|
|
+ } else if($npcid == null){
|
|
//每日登录刷新,刷新的时候把已经购买过的武器去掉;
|
|
//每日登录刷新,刷新的时候把已经购买过的武器去掉;
|
|
$dic = ctx()->store()->weaponPool;
|
|
$dic = ctx()->store()->weaponPool;
|
|
foreach ($dic as $npcid => $val) {
|
|
foreach ($dic as $npcid => $val) {
|