正在显示
3 个修改的文件
包含
52 行增加
和
4 行删除
@@ -50,7 +50,8 @@ class Attestation extends Api | @@ -50,7 +50,8 @@ class Attestation extends Api | ||
50 | } | 50 | } |
51 | }) | 51 | }) |
52 | */ | 52 | */ |
53 | - public function addForm(){ | 53 | + public function addForm() |
54 | + { | ||
54 | $user_id = $this->getUserId(); | 55 | $user_id = $this->getUserId(); |
55 | $param = $this->request->param(); | 56 | $param = $this->request->param(); |
56 | if($param['shen'] != 1){ | 57 | if($param['shen'] != 1){ |
@@ -142,7 +143,8 @@ class Attestation extends Api | @@ -142,7 +143,8 @@ class Attestation extends Api | ||
142 | } | 143 | } |
143 | }) | 144 | }) |
144 | */ | 145 | */ |
145 | - public function company(){ | 146 | + public function company() |
147 | + { | ||
146 | $user_id = $this->getUserId(); | 148 | $user_id = $this->getUserId(); |
147 | $param = $this->request->param(); | 149 | $param = $this->request->param(); |
148 | if($param['shen'] != 2){ | 150 | if($param['shen'] != 2){ |
@@ -233,7 +235,8 @@ class Attestation extends Api | @@ -233,7 +235,8 @@ class Attestation extends Api | ||
233 | } | 235 | } |
234 | }) | 236 | }) |
235 | */ | 237 | */ |
236 | - public function government(){ | 238 | + public function government() |
239 | + { | ||
237 | $user_id = $this->getUserId(); | 240 | $user_id = $this->getUserId(); |
238 | $param = $this->request->param(); | 241 | $param = $this->request->param(); |
239 | if($param['shen'] != 3){ | 242 | if($param['shen'] != 3){ |
@@ -563,4 +566,6 @@ class Attestation extends Api | @@ -563,4 +566,6 @@ class Attestation extends Api | ||
563 | } | 566 | } |
564 | } | 567 | } |
565 | 568 | ||
569 | + | ||
570 | + | ||
566 | } | 571 | } |
application/api/controller/Message.php
0 → 100644
1 | +<?php | ||
2 | +/** | ||
3 | + * Created by PhpStorm. | ||
4 | + * User: Administrator | ||
5 | + * Date: 2019/12/30 | ||
6 | + * Time: 17:17 | ||
7 | + */ | ||
8 | + | ||
9 | +namespace app\api\controller; | ||
10 | + | ||
11 | + | ||
12 | +use app\common\controller\Api; | ||
13 | + | ||
14 | +/** | ||
15 | + * 平台消息模块 | ||
16 | + */ | ||
17 | +class Message extends Api | ||
18 | +{ | ||
19 | + /** | ||
20 | + * @ApiTitle (平台消息列表) | ||
21 | + * @ApiSummary (平台消息列表) | ||
22 | + * @ApiMethod (POST) | ||
23 | + * @ApiRoute (/api/message/index) | ||
24 | + * @ApiReturn({ | ||
25 | + "code": 1, | ||
26 | + "msg": "SUCCESS", | ||
27 | + "time": "1553839125", | ||
28 | + "data": { | ||
29 | + 'title'://标题, | ||
30 | + 'url': //跳转链接地址, | ||
31 | + 'form'://来源, | ||
32 | + 'look_num'://浏览量, | ||
33 | + 'thumbnail'://图片 | ||
34 | + 'content'://内容, | ||
35 | + 'createtime'://创建时间 | ||
36 | + } | ||
37 | + }) | ||
38 | + */ | ||
39 | + public function index() | ||
40 | + { | ||
41 | + | ||
42 | + } | ||
43 | +} |
@@ -275,7 +275,7 @@ class User extends Api | @@ -275,7 +275,7 @@ class User extends Api | ||
275 | $user_id = $this->getUserId(); | 275 | $user_id = $this->getUserId(); |
276 | $data = Db::name('user') | 276 | $data = Db::name('user') |
277 | ->where('id',$user_id) | 277 | ->where('id',$user_id) |
278 | - ->field('id,score,identity,nickname,avatar,mobile') | 278 | + ->field('id,score,identity,nickname,avatar,mobile,id_num') |
279 | ->find(); | 279 | ->find(); |
280 | 280 | ||
281 | $farm = Db::name('farm') | 281 | $farm = Db::name('farm') |
-
请 注册 或 登录 后发表评论