|
@@ -56,11 +56,16 @@ class User extends Model
|
|
|
if (isset($changedata['score']) && (int) $changedata['score'] !== (int) $origin['score']) {
|
|
|
ScoreLog::create(['user_id' => $row['id'], 'score' => $changedata['score'] - $origin['score'], 'before' => $origin['score'], 'after' => $changedata['score'], 'memo' => '管理员变更积分']);
|
|
|
}
|
|
|
-
|
|
|
+ // 调整身份
|
|
|
if(isset($changedata['level']) && $changedata['level'] != $origin['level']) {
|
|
|
LmtUserLevelLog::createLevelLog($origin['id'],$changedata['level'],4,'后台调整');
|
|
|
$row->level_update = time();
|
|
|
}
|
|
|
+ // 调整代理
|
|
|
+ if(isset($changedata['rank']) && $changedata['rank'] != $origin['rank'] )
|
|
|
+ {
|
|
|
+
|
|
|
+ }
|
|
|
|
|
|
if(isset($changedata['quota_num']) && $changedata['quota_num'] != $origin['quota_num'] ) {
|
|
|
$quota =[
|