diff --git a/app/controller/api/TaskController.php b/app/controller/api/TaskController.php index 58f45d5..d769afa 100644 --- a/app/controller/api/TaskController.php +++ b/app/controller/api/TaskController.php @@ -118,7 +118,8 @@ class TaskController // 如果该用户没有关联手机号,首次关联赠送积分 if (UserPhone::where('user_id', $user_id)->count() == 0) { UserRewardDao::base($user_id, 4, 50, '首次关联手机号送50积分'); - $UserPhone = new UserPhone(); + } + $UserPhone = new UserPhone(); $UserPhone->phone = $phone; $UserPhone->user_id = $user_id; $UserPhone->score = 0; @@ -126,7 +127,6 @@ class TaskController $UserPhone->time = 0; $UserPhone->last_time = time(); $UserPhone->save(); - } } else { // 本地已存在手机号,更新用户信息 // $UserPhone->user_id = $user_id; diff --git a/public/mp4/name-9e85ff4d.mp4 b/public/mp4/name-9e85ff4d.mp4 new file mode 100644 index 0000000..ff93ad4 Binary files /dev/null and b/public/mp4/name-9e85ff4d.mp4 differ