...
|
...
|
@@ -86,31 +86,31 @@ class Coupon extends Api |
|
|
*
|
|
|
*
|
|
|
* @ApiReturn({
|
|
|
"code": 1,
|
|
|
"msg": "成功",
|
|
|
"time": "1571492001",
|
|
|
"data": {
|
|
|
"attention_id"://关注ID
|
|
|
"id": //老师id,
|
|
|
"user_id"://老师的用户ID
|
|
|
"name"://老师名字
|
|
|
"sex"://性别
|
|
|
"birth"://出生日期
|
|
|
"idcard"://身份证号
|
|
|
"before"://身份证正面照
|
|
|
"behind"://身份证反面照
|
|
|
"phone"://手机号
|
|
|
"thumbnail"://头像
|
|
|
"address"://常住地
|
|
|
"honor"://头衔
|
|
|
"content"://个人履历
|
|
|
"show"://展示在最前
|
|
|
"desc"://个人简历
|
|
|
"online"://在线时段
|
|
|
"territory_id"://擅长领域ID
|
|
|
"help_num"://帮助人数
|
|
|
"level"://星级
|
|
|
"createtime"://创建时间
|
|
|
"code": 1,
|
|
|
"msg": "成功",
|
|
|
"time": "1571492001",
|
|
|
"data": {
|
|
|
"attention_id"://关注ID
|
|
|
"id": //老师id,
|
|
|
"user_id"://老师的用户ID
|
|
|
"name"://老师名字
|
|
|
"sex"://性别
|
|
|
"birth"://出生日期
|
|
|
"idcard"://身份证号
|
|
|
"before"://身份证正面照
|
|
|
"behind"://身份证反面照
|
|
|
"phone"://手机号
|
|
|
"thumbnail"://头像
|
|
|
"address"://常住地
|
|
|
"honor"://头衔
|
|
|
"content"://个人履历
|
|
|
"show"://展示在最前
|
|
|
"desc"://个人简历
|
|
|
"online"://在线时段
|
|
|
"territory_id"://擅长领域ID
|
|
|
"help_num"://帮助人数
|
|
|
"level"://星级
|
|
|
"createtime"://创建时间
|
|
|
}
|
|
|
})
|
|
|
*/
|
...
|
...
|
@@ -156,11 +156,13 @@ class Coupon extends Api |
|
|
$v['thumbnail'] = $http.$v['thumbnail'];
|
|
|
$v['territory_id'] = explode(',',$v['territory_id']);
|
|
|
foreach ($v['territory_id'] as &$val){
|
|
|
$val = Db::name('territory')
|
|
|
$a = Db::name('territory')
|
|
|
->alias('a')
|
|
|
->join('contype b','a.contype_id = b.id')
|
|
|
->where('a.id',$val)
|
|
|
->column('b.title');
|
|
|
->field('b.title')
|
|
|
->find();
|
|
|
$val = $a['title'];
|
|
|
}
|
|
|
}
|
|
|
$this->success('success',$data);
|
...
|
...
|
|