作者 郭盛
1 个管道 的构建 通过 耗费 2 秒

修改用户个人中心信息

... ... @@ -50,7 +50,8 @@ class Attestation extends Api
}
})
*/
public function addForm(){
public function addForm()
{
$user_id = $this->getUserId();
$param = $this->request->param();
if($param['shen'] != 1){
... ... @@ -142,7 +143,8 @@ class Attestation extends Api
}
})
*/
public function company(){
public function company()
{
$user_id = $this->getUserId();
$param = $this->request->param();
if($param['shen'] != 2){
... ... @@ -233,7 +235,8 @@ class Attestation extends Api
}
})
*/
public function government(){
public function government()
{
$user_id = $this->getUserId();
$param = $this->request->param();
if($param['shen'] != 3){
... ... @@ -563,4 +566,6 @@ class Attestation extends Api
}
}
}
\ No newline at end of file
... ...
<?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2019/12/30
* Time: 17:17
*/
namespace app\api\controller;
use app\common\controller\Api;
/**
* 平台消息模块
*/
class Message extends Api
{
/**
* @ApiTitle (平台消息列表)
* @ApiSummary (平台消息列表)
* @ApiMethod (POST)
* @ApiRoute (/api/message/index)
* @ApiReturn({
"code": 1,
"msg": "SUCCESS",
"time": "1553839125",
"data": {
'title'://标题,
'url': //跳转链接地址,
'form'://来源,
'look_num'://浏览量,
'thumbnail'://图片
'content'://内容,
'createtime'://创建时间
}
})
*/
public function index()
{
}
}
\ No newline at end of file
... ...
... ... @@ -275,7 +275,7 @@ class User extends Api
$user_id = $this->getUserId();
$data = Db::name('user')
->where('id',$user_id)
->field('id,score,identity,nickname,avatar,mobile')
->field('id,score,identity,nickname,avatar,mobile,id_num')
->find();
$farm = Db::name('farm')
... ...