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