|
@@ -411,6 +411,8 @@ class UserController extends BaseController
|
|
|
public function findSignInfo()
|
|
|
{
|
|
|
$service = new SignService($this->uid);
|
|
|
+ $reward_list = $this->get_sign_reward_list($this->distribution_channel_id);
|
|
|
+ $service->setRewardList($reward_list);
|
|
|
return response()->success($service->getSignInfo());
|
|
|
}
|
|
|
|
|
@@ -420,7 +422,28 @@ class UserController extends BaseController
|
|
|
public function newSign()
|
|
|
{
|
|
|
$service = new SignService($this->uid);
|
|
|
+ $reward_list = $this->get_sign_reward_list($this->distribution_channel_id);
|
|
|
+ $service->setRewardList($reward_list);
|
|
|
$service->sign();
|
|
|
return response()->success();
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 奖励
|
|
|
+ * name: get_sign_reward_list
|
|
|
+ * @param $distribution_channel_id
|
|
|
+ * @return int[]
|
|
|
+ * date 2022/10/11 11:56
|
|
|
+ */
|
|
|
+ private function get_sign_reward_list($distribution_channel_id)
|
|
|
+ {
|
|
|
+ $list = [30, 35, 40, 45, 50, 55, 60];
|
|
|
+
|
|
|
+ // 琥珀阅读签到奖励独立
|
|
|
+ if ($distribution_channel_id == 14903){
|
|
|
+ $list = [3,88,188,30,88,188,188];
|
|
|
+ }
|
|
|
+
|
|
|
+ return $list;
|
|
|
+ }
|
|
|
}
|