Commit 6d285e2d by mushishixian

修改也去维护缓存

parent b0241f75
......@@ -88,6 +88,9 @@ class SupplierAccountApiController extends Controller
$model = new SupplierAccountModel();
$result = $model->where('id', $data['id'])->update($data);
if ($result) {
//还要插入一个redis
$redis = new RedisModel();
$redis->hset('yunxin_api_user_mobile', $data['mobile'], $data['id']);
$this->response(0, '修改成功');
}
$this->response(-1, '修改失败', $result);
......
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 sign in to comment