作者 潘浩文
1 个管道 的构建 通过 耗费 0 秒

测试

... ... @@ -294,9 +294,9 @@ class CoachController extends RestBaseController
public function edit(){
$userId = $this->getUserId();
$data=Db::name('coach')->where('user_id',$userId)->find();
$data['product_id']=implode(',',$data['product']);
$data['product_id']=explode(',',$data['product']);
$data['product']=Db::name('product')->where('delete_time',null)->select();
$data['type']=implode(',',$data['type']);
$data['type']=explode(',',$data['type']);
$data['avatar']=cmf_get_image_preview_url($data['avatar']);
$this->success("获取数据成功", $data);
}
... ...