作者 何书鹏
1 个管道 的构建 通过 耗费 2 秒

bug修改

... ... @@ -104,7 +104,7 @@ class Category extends Api
}
// 判断等级和是否有下级
public function getTreeList($data = [], $level = 1)
private function getTreeList($data = [], $level = 1)
{
$arr = [];
$n = 0;
... ...
... ... @@ -56,7 +56,7 @@ class Sms extends Api
}
}
public function getCode($mobile, $code = null, $event = 'default'){
private function getCode($mobile, $code = null, $event = 'default'){
$code = is_null($code) ? mt_rand(1000, 9999) : $code;
$time = time();
$sms = \app\common\model\Sms::create([
... ...
... ... @@ -516,6 +516,7 @@ class User extends Api
{
$post = $this->request->post();
$model = UserSize::detail($this->user['id'], $post['user_size_id']);
$this->success(json_encode($model->edit($post)));
if(empty($model)){
$this->error(__('尺寸信息不存在'));
}
... ...
... ... @@ -85,6 +85,7 @@ class UserSize extends Model
if(!empty($data['body_info']) && is_array($data['body_info'])){
$data['body_info'] = json_encode($data['body_info']);
}
return $data;
return $this->allowField(true)->save($data);
}
... ...
此 diff 太大无法显示。