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

修改接口

@@ -12,13 +12,13 @@ @@ -12,13 +12,13 @@
12 <!--<a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('allow/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a>--> 12 <!--<a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('allow/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a>-->
13 <!--<a href="javascript:;" class="btn btn-danger btn-import {:$auth->check('allow/import')?'':'hide'}" title="{:__('Import')}" id="btn-import-file" data-url="ajax/upload" data-mimetype="csv,xls,xlsx" data-multiple="false"><i class="fa fa-upload"></i> {:__('Import')}</a>--> 13 <!--<a href="javascript:;" class="btn btn-danger btn-import {:$auth->check('allow/import')?'':'hide'}" title="{:__('Import')}" id="btn-import-file" data-url="ajax/upload" data-mimetype="csv,xls,xlsx" data-multiple="false"><i class="fa fa-upload"></i> {:__('Import')}</a>-->
14 14
15 - <div class="dropdown btn-group {:$auth->check('allow/multi')?'':'hide'}">  
16 - <a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a>  
17 - <ul class="dropdown-menu text-left" role="menu">  
18 - <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=normal"><i class="fa fa-eye"></i> {:__('Set to normal')}</a></li>  
19 - <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=hidden"><i class="fa fa-eye-slash"></i> {:__('Set to hidden')}</a></li>  
20 - </ul>  
21 - </div> 15 + <!--<div class="dropdown btn-group {:$auth->check('allow/multi')?'':'hide'}">-->
  16 + <!--<a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a>-->
  17 + <!--<ul class="dropdown-menu text-left" role="menu">-->
  18 + <!--<li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=normal"><i class="fa fa-eye"></i> {:__('Set to normal')}</a></li>-->
  19 + <!--<li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=hidden"><i class="fa fa-eye-slash"></i> {:__('Set to hidden')}</a></li>-->
  20 + <!--</ul>-->
  21 + <!--</div>-->
22 22
23 23
24 </div> 24 </div>
@@ -12,13 +12,13 @@ @@ -12,13 +12,13 @@
12 <!--<a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('commission/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a>--> 12 <!--<a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('commission/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a>-->
13 <!--<a href="javascript:;" class="btn btn-danger btn-import {:$auth->check('commission/import')?'':'hide'}" title="{:__('Import')}" id="btn-import-file" data-url="ajax/upload" data-mimetype="csv,xls,xlsx" data-multiple="false"><i class="fa fa-upload"></i> {:__('Import')}</a>--> 13 <!--<a href="javascript:;" class="btn btn-danger btn-import {:$auth->check('commission/import')?'':'hide'}" title="{:__('Import')}" id="btn-import-file" data-url="ajax/upload" data-mimetype="csv,xls,xlsx" data-multiple="false"><i class="fa fa-upload"></i> {:__('Import')}</a>-->
14 14
15 - <div class="dropdown btn-group {:$auth->check('commission/multi')?'':'hide'}">  
16 - <a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a>  
17 - <ul class="dropdown-menu text-left" role="menu">  
18 - <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=normal"><i class="fa fa-eye"></i> {:__('Set to normal')}</a></li>  
19 - <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=hidden"><i class="fa fa-eye-slash"></i> {:__('Set to hidden')}</a></li>  
20 - </ul>  
21 - </div> 15 + <!--<div class="dropdown btn-group {:$auth->check('commission/multi')?'':'hide'}">-->
  16 + <!--<a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a>-->
  17 + <!--<ul class="dropdown-menu text-left" role="menu">-->
  18 + <!--<li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=normal"><i class="fa fa-eye"></i> {:__('Set to normal')}</a></li>-->
  19 + <!--<li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=hidden"><i class="fa fa-eye-slash"></i> {:__('Set to hidden')}</a></li>-->
  20 + <!--</ul>-->
  21 + <!--</div>-->
22 22
23 23
24 </div> 24 </div>
@@ -12,13 +12,13 @@ @@ -12,13 +12,13 @@
12 <!--<a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('pic/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a>--> 12 <!--<a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('pic/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a>-->
13 <!--<a href="javascript:;" class="btn btn-danger btn-import {:$auth->check('pic/import')?'':'hide'}" title="{:__('Import')}" id="btn-import-file" data-url="ajax/upload" data-mimetype="csv,xls,xlsx" data-multiple="false"><i class="fa fa-upload"></i> {:__('Import')}</a>--> 13 <!--<a href="javascript:;" class="btn btn-danger btn-import {:$auth->check('pic/import')?'':'hide'}" title="{:__('Import')}" id="btn-import-file" data-url="ajax/upload" data-mimetype="csv,xls,xlsx" data-multiple="false"><i class="fa fa-upload"></i> {:__('Import')}</a>-->
14 14
15 - <div class="dropdown btn-group {:$auth->check('pic/multi')?'':'hide'}">  
16 - <a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a>  
17 - <ul class="dropdown-menu text-left" role="menu">  
18 - <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=normal"><i class="fa fa-eye"></i> {:__('Set to normal')}</a></li>  
19 - <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=hidden"><i class="fa fa-eye-slash"></i> {:__('Set to hidden')}</a></li>  
20 - </ul>  
21 - </div> 15 + <!--<div class="dropdown btn-group {:$auth->check('pic/multi')?'':'hide'}">-->
  16 + <!--<a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a>-->
  17 + <!--<ul class="dropdown-menu text-left" role="menu">-->
  18 + <!--<li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=normal"><i class="fa fa-eye"></i> {:__('Set to normal')}</a></li>-->
  19 + <!--<li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=hidden"><i class="fa fa-eye-slash"></i> {:__('Set to hidden')}</a></li>-->
  20 + <!--</ul>-->
  21 + <!--</div>-->
22 22
23 23
24 </div> 24 </div>
@@ -6,19 +6,19 @@ @@ -6,19 +6,19 @@
6 <div class="tab-pane fade active in" id="one"> 6 <div class="tab-pane fade active in" id="one">
7 <div class="widget-body no-padding"> 7 <div class="widget-body no-padding">
8 <div id="toolbar" class="toolbar"> 8 <div id="toolbar" class="toolbar">
9 - <!--<a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a>--> 9 + <a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a>
10 <!--<a href="javascript:;" class="btn btn-success btn-add {:$auth->check('setvalid/add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a>--> 10 <!--<a href="javascript:;" class="btn btn-success btn-add {:$auth->check('setvalid/add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a>-->
11 <!--<a href="javascript:;" class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('setvalid/edit')?'':'hide'}" title="{:__('Edit')}" ><i class="fa fa-pencil"></i> {:__('Edit')}</a>--> 11 <!--<a href="javascript:;" class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('setvalid/edit')?'':'hide'}" title="{:__('Edit')}" ><i class="fa fa-pencil"></i> {:__('Edit')}</a>-->
12 <!--<a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('setvalid/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a>--> 12 <!--<a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('setvalid/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a>-->
13 <!--<a href="javascript:;" class="btn btn-danger btn-import {:$auth->check('setvalid/import')?'':'hide'}" title="{:__('Import')}" id="btn-import-file" data-url="ajax/upload" data-mimetype="csv,xls,xlsx" data-multiple="false"><i class="fa fa-upload"></i> {:__('Import')}</a>--> 13 <!--<a href="javascript:;" class="btn btn-danger btn-import {:$auth->check('setvalid/import')?'':'hide'}" title="{:__('Import')}" id="btn-import-file" data-url="ajax/upload" data-mimetype="csv,xls,xlsx" data-multiple="false"><i class="fa fa-upload"></i> {:__('Import')}</a>-->
14 14
15 - <div class="dropdown btn-group {:$auth->check('setvalid/multi')?'':'hide'}">  
16 - <a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a>  
17 - <ul class="dropdown-menu text-left" role="menu">  
18 - <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=normal"><i class="fa fa-eye"></i> {:__('Set to normal')}</a></li>  
19 - <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=hidden"><i class="fa fa-eye-slash"></i> {:__('Set to hidden')}</a></li>  
20 - </ul>  
21 - </div> 15 + <!--<div class="dropdown btn-group {:$auth->check('setvalid/multi')?'':'hide'}">-->
  16 + <!--<a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a>-->
  17 + <!--<ul class="dropdown-menu text-left" role="menu">-->
  18 + <!--<li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=normal"><i class="fa fa-eye"></i> {:__('Set to normal')}</a></li>-->
  19 + <!--<li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=hidden"><i class="fa fa-eye-slash"></i> {:__('Set to hidden')}</a></li>-->
  20 + <!--</ul>-->
  21 + <!--</div>-->
22 22
23 23
24 </div> 24 </div>
@@ -246,7 +246,6 @@ class Index extends Api @@ -246,7 +246,6 @@ class Index extends Api
246 ->field('status,updatetime',true) 246 ->field('status,updatetime',true)
247 ->page($page,$pageNum) 247 ->page($page,$pageNum)
248 ->select(); 248 ->select();
249 -  
250 }else{ 249 }else{
251 if(!empty($keyword)){ 250 if(!empty($keyword)){
252 $history['user_id'] = $user_id; 251 $history['user_id'] = $user_id;
@@ -324,14 +323,16 @@ class Index extends Api @@ -324,14 +323,16 @@ class Index extends Api
324 $v['behind'] = $http.$v['behind']; 323 $v['behind'] = $http.$v['behind'];
325 $v['thumbnail'] = $http.$v['thumbnail']; 324 $v['thumbnail'] = $http.$v['thumbnail'];
326 $v['territory_id'] = explode(',',$v['territory_id']); 325 $v['territory_id'] = explode(',',$v['territory_id']);
327 - foreach ($v['territory_id'] as &$val){  
328 - $a = Db::name('territory')  
329 - ->alias('a')  
330 - ->join('contype b','a.contype_id = b.id')  
331 - ->where('a.id',$val)  
332 - ->field('b.title')  
333 - ->find();  
334 - $val = $a['title']; 326 + if(!empty($v['territory_id'])){
  327 + foreach ($v['territory_id'] as &$val){
  328 + $a = Db::name('territory')
  329 + ->alias('a')
  330 + ->join('contype b','a.contype_id = b.id')
  331 + ->where('a.id',$val)
  332 + ->field('b.title')
  333 + ->find();
  334 + $val = $a['title'];
  335 + }
335 } 336 }
336 } 337 }
337 $this->success('success',$data); 338 $this->success('success',$data);
@@ -161,7 +161,7 @@ class User extends Api @@ -161,7 +161,7 @@ class User extends Api
161 ->where('openid', $openid) 161 ->where('openid', $openid)
162 ->where('app_id', $appId) 162 ->where('app_id', $appId)
163 ->update($userData); 163 ->update($userData);
164 - $this->success("登录成功!", ['token' => $token, 'avatar' => $wxUserData['avatarUrl']]); 164 + $this->success("登录成功!", ['user_id'=>$findThirdPartyUser['user_id'],'token' => $token, 'avatar' => $wxUserData['avatarUrl']]);
165 } else { 165 } else {
166 if(empty($data['inviter'])){ 166 if(empty($data['inviter'])){
167 $invite_id = ''; 167 $invite_id = '';
@@ -9155,7 +9155,7 @@ @@ -9155,7 +9155,7 @@
9155 9155
9156 <div class="row mt0 footer"> 9156 <div class="row mt0 footer">
9157 <div class="col-md-6" align="left"> 9157 <div class="col-md-6" align="left">
9158 - Generated on 2020-03-13 15:45:44 </div> 9158 + Generated on 2020-03-13 16:02:40 </div>
9159 <div class="col-md-6" align="right"> 9159 <div class="col-md-6" align="right">
9160 <a href="https://www.fastadmin.net" target="_blank">FastAdmin</a> 9160 <a href="https://www.fastadmin.net" target="_blank">FastAdmin</a>
9161 </div> 9161 </div>