Commit d95b3a90 by 冷斌

update

parent 5c46be03
......@@ -960,17 +960,17 @@ class Model_User extends PhalApi_Model_NotORM
);
// $Car_u->where("uid={$params['uid']}")->update($data1);
$Car_u->where('uid = ?', $params['uid'])->update($data1);
DI()->notorm->users_car->where('uid = ?', $params['uid'])->update($data1);
$data=array(
'status'=>$setstatus,
);
$Car_u->where("uid={$params['uid']} and carid={$params['id']}")->update($data);
DI()->notorm->users_car->where("uid={$params['uid']} and carid={$params['id']}")->update($data);
$key='car_'.$params['uid'];
if($setstatus){
$isexist=$Car_u->where("uid={$params['uid']} and status=1")->fetchOne();
$isexist= DI()->notorm->users_car->where("uid={$params['uid']} and status=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