坑一
2020-10-29 09:40:04    104    0    0
junjie
#数据库结构 ![title](/api/file/getImage?fileId=5f9650132dcf7c06e40003e4) #语句 ``` $info = $model->user_info(); if (isset($info['error'])) return $this->response($info); if (!isset($info['id'])) return $this->param_error('返回信息错误'); $rs = $this->model->where('id', $this->id)->update(['cid' => $info['id']]); ``` 打印出info的值 ``` array ( 'id' => 1329389309362531, ... } ``` 保存后数据库的值 ![title](/api/file/getImage?fileId=5f9650da2dcf7c06e40003e5) #修复bug ``` $rs = $this->model->where('id', $this->id)->update(['cid' => $info['id'].'']); ``` #后续 上面是使用laravel5.7,使用laravel5.5之后得到 ![title](/api/file/getImage?fileId=5f9a74b02dcf7c06e400043c) 而其他同事laravel5.5是正常的

上一篇: Vuex入门教程(详细篇)

下一篇: MySQL Explain详解

Table of content