...
|
...
|
@@ -85,8 +85,11 @@ class CenterController extends HomeBaseController |
|
|
}
|
|
|
$post['id'] = session('user.id');
|
|
|
if (Db::name('user')->update($post)) {
|
|
|
$is_perfect = Db::name('user')->where(['id' => session('user.id')])->value('is_perfect');
|
|
|
if ($is_perfect == 0) {
|
|
|
give_as_a_present(session('user.id'), '完善信息赠送');
|
|
|
Db::name('user')->update(['id'=>session('user.id'), 'is_perfect'=>1]);
|
|
|
}
|
|
|
Db::name('user')->update(['id' => session('user.id'), 'is_perfect' => 1]);
|
|
|
echo json_encode(['data' => '更改成功', 'code' => 20000]);
|
|
|
exit();
|
|
|
} else {
|
...
|
...
|
|