删除phone_log表

This commit is contained in:
lingling 2025-02-17 23:08:00 +08:00
parent 133ca98958
commit ee9b47ce40
2 changed files with 13 additions and 35 deletions

View File

@ -101,9 +101,10 @@ class TaskController
$UserPhone->time = 0; $UserPhone->time = 0;
$UserPhone->save(); $UserPhone->save();
$GetLodeLog->delete(); $GetLodeLog->delete();
}
//首次成功关联赠送50积分 //首次成功关联赠送50积分
$this->first_phone($phone,$user_id); // $this->first_phone($phone, $user_id);
}
return ApiResponseApp::success([]); return ApiResponseApp::success([]);
} }
@ -190,7 +191,7 @@ class TaskController
public static function first_phone($phone, $user_id) public static function first_phone($phone, $user_id)
{ {
//查找数据库中是否存在该手机号 //查找数据库中是否存在该手机号
$user_phone = PhoneLog::where('phone', $phone)->first(); $user_phone = UserPhone::where('phone', $phone)->first();
//如果不存在则送用户50积分 //如果不存在则送用户50积分
if (!$user_phone) { if (!$user_phone) {
UserRewardDao::base($user_id, 4, 50, '首次关联此手机号送50积分'); UserRewardDao::base($user_id, 4, 50, '首次关联此手机号送50积分');

View File

@ -1,23 +0,0 @@
<?php
namespace app\model;
use support\Model;
class PhoneLog extends Model
{
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'phone_log';
/**
* The primary key associated with the table.
*
* @var string
*/
protected $primaryKey = 'id';
}