Commit d25ce1fd by 冷斌

update

parent 4620ba04
......@@ -926,7 +926,7 @@ class Model_User extends PhalApi_Model_NotORM
'state'=>$setstatus,
);
$Liang->where("uid={$params['uid']} and id={$params['id']}")->update( $data );
DI()->notorm->liang->where("uid={$params['uid']} and id={$params['id']}")->update( $data );
$Users=DI()->notorm->users;
......@@ -934,7 +934,7 @@ class Model_User extends PhalApi_Model_NotORM
$key='liang_'.$params['uid'];
if($setstatus==1){
$Users->where("id={$params['uid']}")->update(['goodnum' => $goodnum]);
$isexist=$Liang->where("uid={$params['uid']} and status=1 and state=1")->fetchOne();
$isexist= DI()->notorm->liang->where("uid={$params['uid']} and status=1 and state=1")->fetchOne();
if($isexist){
setcaches($key,$isexist);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment