提交
This commit is contained in:
parent
74af0e12cd
commit
644f1b1752
|
|
@ -158,7 +158,7 @@ class Diamond extends Base
|
|||
|
||||
// 更新数据
|
||||
$result = DiamondProducts::edit($id, $param);
|
||||
if ($result) {
|
||||
if ($result !== false) {
|
||||
return $this->succ('修改成功');
|
||||
} else {
|
||||
return $this->err('修改失败');
|
||||
|
|
|
|||
|
|
@ -1298,6 +1298,9 @@ class User extends Base
|
|||
}
|
||||
$invite_code = request()->param('invite_code', '');
|
||||
$user = Usermodel::where('id', '=', $user_id)->find();
|
||||
if ($user['uid'] == $invite_code) {
|
||||
return $this->renderError("不能绑定自己");
|
||||
}
|
||||
$p_user = Usermodel::where('uid', '=', $invite_code)->find();
|
||||
if ($p_user != null) {
|
||||
$user->pid = $p_user['id'];
|
||||
|
|
|
|||
|
|
@ -427,6 +427,7 @@ class User extends Base
|
|||
$money1 = ProfitIntegral::field('change_money')
|
||||
->where('user_id', '=', $data['pid'])
|
||||
->where('type', '=', 5)
|
||||
->where('share_uid', '=', $data['id'])
|
||||
->where('change_money', '>', 0)
|
||||
->sum('change_money');
|
||||
if ($money1 > 0) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user