|
@@ -109,7 +109,7 @@ class UserAgentLevel extends BaseModel
|
|
|
|
|
|
|
|
// 2. 所有操作成功时,更新用户表的代理等级为0
|
|
// 2. 所有操作成功时,更新用户表的代理等级为0
|
|
|
if ($delRes && $taskDelRes) {
|
|
if ($delRes && $taskDelRes) {
|
|
|
- User::where('uid', $uid)->update(['agent_level' => 0]);
|
|
|
|
|
|
|
+ User::where('uid', $uid)->update(['agent' => 0]);
|
|
|
self::commitTrans(); // 提交事务
|
|
self::commitTrans(); // 提交事务
|
|
|
return true;
|
|
return true;
|
|
|
} else {
|
|
} else {
|