删除phone_log表
This commit is contained in:
parent
133ca98958
commit
ee9b47ce40
|
@ -101,9 +101,10 @@ class TaskController
|
|||
$UserPhone->time = 0;
|
||||
$UserPhone->save();
|
||||
$GetLodeLog->delete();
|
||||
}
|
||||
//首次成功关联,赠送50积分
|
||||
$this->first_phone($phone,$user_id);
|
||||
// $this->first_phone($phone, $user_id);
|
||||
}
|
||||
|
||||
return ApiResponseApp::success([]);
|
||||
}
|
||||
|
||||
|
@ -190,7 +191,7 @@ class TaskController
|
|||
public static function first_phone($phone, $user_id)
|
||||
{
|
||||
//查找数据库中是否存在该手机号
|
||||
$user_phone = PhoneLog::where('phone', $phone)->first();
|
||||
$user_phone = UserPhone::where('phone', $phone)->first();
|
||||
//如果不存在则送用户50积分
|
||||
if (!$user_phone) {
|
||||
UserRewardDao::base($user_id, 4, 50, '首次关联此手机号送50积分');
|
||||
|
|
|
@ -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';
|
||||
|
||||
}
|
Loading…
Reference in New Issue