|
@@ -100,9 +100,11 @@ class TaskProc {
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
- $str = "5," . $point;
|
|
|
- StoreProc::$reward[] = $str;
|
|
|
-
|
|
|
+ if($point != 0){
|
|
|
+ $str = "5," . $point;
|
|
|
+ StoreProc::$reward[] = $str;
|
|
|
+ }
|
|
|
+
|
|
|
UserProc::updateUserInfo();
|
|
|
return Resp::ok(array("task" => ctx()->task,
|
|
|
"store" => ctx()->store,
|
|
@@ -110,7 +112,7 @@ class TaskProc {
|
|
|
'reward_Gem' => StoreProc::$reward_Gem,
|
|
|
'gold' => ctx()->baseInfo->gold,
|
|
|
'cash' => ctx()->baseInfo->cash,
|
|
|
- 'hero'=> ctx()->heros,
|
|
|
+ 'heros'=> ctx()->heros,
|
|
|
));
|
|
|
}
|
|
|
|
|
@@ -153,7 +155,7 @@ class TaskProc {
|
|
|
'reward_Gem' => StoreProc::$reward_Gem,
|
|
|
'gold' => ctx()->baseInfo->gold,
|
|
|
'cash' => ctx()->baseInfo->cash,
|
|
|
- 'reward_hero'=> StoreProc::$reward_hero,
|
|
|
+ 'heros'=> ctx()->heros,
|
|
|
));
|
|
|
}
|
|
|
|