作者 Cool
1 个管道 的构建 失败 耗费 0 秒

行业调整

@@ -62,6 +62,7 @@ class Config @@ -62,6 +62,7 @@ class Config
62 'key' => 'b6iGEk2ZPhj8ElHuWX0slbxojCVSn8oN', 62 'key' => 'b6iGEk2ZPhj8ElHuWX0slbxojCVSn8oN',
63 'cert_path' => ROOT_PATH.'/addons/wechat/cert/apiclient_cert.pem', // XXX: 绝对路径!!!! 63 'cert_path' => ROOT_PATH.'/addons/wechat/cert/apiclient_cert.pem', // XXX: 绝对路径!!!!
64 'key_path' => ROOT_PATH.'/addons/wechat/cert/apiclient_key.pem', // XXX: 绝对路径!!!! 64 'key_path' => ROOT_PATH.'/addons/wechat/cert/apiclient_key.pem', // XXX: 绝对路径!!!!
  65 + 'notify_url' => '',
65 // 'device_info' => '013467007045764', 66 // 'device_info' => '013467007045764',
66 // 'sub_app_id' => '', 67 // 'sub_app_id' => '',
67 // 'sub_merchant_id' => '', 68 // 'sub_merchant_id' => '',
@@ -57,13 +57,13 @@ class Store extends Backend @@ -57,13 +57,13 @@ class Store extends Backend
57 } 57 }
58 list($where, $sort, $order, $offset, $limit) = $this->buildparams(); 58 list($where, $sort, $order, $offset, $limit) = $this->buildparams();
59 $total = $this->model 59 $total = $this->model
60 - ->with(['admin','user','industry']) 60 + ->with(['admin','user'])
61 ->where($where) 61 ->where($where)
62 ->order($sort, $order) 62 ->order($sort, $order)
63 ->count(); 63 ->count();
64 64
65 $list = $this->model 65 $list = $this->model
66 - ->with(['admin','user','industry']) 66 + ->with(['admin','user'])
67 ->where($where) 67 ->where($where)
68 ->order($sort, $order) 68 ->order($sort, $order)
69 ->limit($offset, $limit) 69 ->limit($offset, $limit)
@@ -73,7 +73,6 @@ class Store extends Backend @@ -73,7 +73,6 @@ class Store extends Backend
73 73
74 $row->getRelation('admin')->visible(['nickname']); 74 $row->getRelation('admin')->visible(['nickname']);
75 $row->getRelation('user')->visible(['nickname']); 75 $row->getRelation('user')->visible(['nickname']);
76 - $row->getRelation('industry')->visible(['name']);  
77 } 76 }
78 $list = collection($list)->toArray(); 77 $list = collection($list)->toArray();
79 $result = array("total" => $total, "rows" => $list); 78 $result = array("total" => $total, "rows" => $list);
@@ -136,7 +136,7 @@ class Store extends Api @@ -136,7 +136,7 @@ class Store extends Api
136 * @ApiHeaders (name=token, type=string, required=true, description="请求的Token") 136 * @ApiHeaders (name=token, type=string, required=true, description="请求的Token")
137 * @ApiParams (name="store_name", type="string", required=true, description="店铺名称") 137 * @ApiParams (name="store_name", type="string", required=true, description="店铺名称")
138 * @ApiParams (name="house_ids", type="string", sample="店铺1id,店铺2id", required=true, description="入驻社区") 138 * @ApiParams (name="house_ids", type="string", sample="店铺1id,店铺2id", required=true, description="入驻社区")
139 - * @ApiParams (name="industry_id", type="string", required=true, description="行业/关键词id") 139 + * @ApiParams (name="industry_id", type="string", required=true, description="行业/关键词")
140 * @ApiParams (name="name", type="string", required=true, description="联系人姓名") 140 * @ApiParams (name="name", type="string", required=true, description="联系人姓名")
141 * @ApiParams (name="mobile", type="string", required=true, description="联系人手机号") 141 * @ApiParams (name="mobile", type="string", required=true, description="联系人手机号")
142 * @ApiParams (name="license", type="string", required=true, description="营业执照") 142 * @ApiParams (name="license", type="string", required=true, description="营业执照")
@@ -6978,7 +6978,7 @@ @@ -6978,7 +6978,7 @@
6978 <td>industry_id</td> 6978 <td>industry_id</td>
6979 <td>string</td> 6979 <td>string</td>
6980 <td></td> 6980 <td></td>
6981 - <td>行业/关键词id</td> 6981 + <td>行业/关键词</td>
6982 </tr> 6982 </tr>
6983 <tr> 6983 <tr>
6984 <td>name</td> 6984 <td>name</td>
@@ -7037,7 +7037,7 @@ @@ -7037,7 +7037,7 @@
7037 </div> 7037 </div>
7038 <div class="form-group"> 7038 <div class="form-group">
7039 <label class="control-label" for="industry_id">industry_id</label> 7039 <label class="control-label" for="industry_id">industry_id</label>
7040 - <input type="string" class="form-control input-sm" id="industry_id" required placeholder="行业/关键词id" name="industry_id"> 7040 + <input type="string" class="form-control input-sm" id="industry_id" required placeholder="行业/关键词" name="industry_id">
7041 </div> 7041 </div>
7042 <div class="form-group"> 7042 <div class="form-group">
7043 <label class="control-label" for="name">name</label> 7043 <label class="control-label" for="name">name</label>
@@ -7619,7 +7619,15 @@ @@ -7619,7 +7619,15 @@
7619 <div class="col-md-12"> 7619 <div class="col-md-12">
7620 <pre id="sample_response48">{ 7620 <pre id="sample_response48">{
7621 'code':'1', 7621 'code':'1',
7622 - 'msg':'返回成功' 7622 + 'msg':'返回成功',
  7623 + "data": {
  7624 + "id": 1,
  7625 + "store_name": "123",
  7626 + "image_arr": [
  7627 + "http://cloud.caiyunpan.brotop.cn/assets/img/qrcode.png",
  7628 + "http://cloud.caiyunpan.brotop.cn/assets/img/qrcode.png"
  7629 + ]
  7630 + }
7623 }</pre> 7631 }</pre>
7624 </div> 7632 </div>
7625 </div> 7633 </div>
@@ -8878,13 +8886,14 @@ @@ -8878,13 +8886,14 @@
8878 'code':'1', 8886 'code':'1',
8879 'msg':'返回成功', 8887 'msg':'返回成功',
8880 "data": { 8888 "data": {
8881 - "list": [  
8882 - {  
8883 - "id": 1,  
8884 - "name": "行业名称",  
8885 - "weigh": 0,  
8886 - }  
8887 - ] 8889 + "list": [
  8890 + {
  8891 + "id": 1,
  8892 + "money": "充值金额",
  8893 + "score": "赠送板币",
  8894 + "weigh": 1,
  8895 + },
  8896 + ]
8888 } 8897 }
8889 }</pre> 8898 }</pre>
8890 </div> 8899 </div>
@@ -11406,7 +11415,7 @@ @@ -11406,7 +11415,7 @@
11406 11415
11407 <div class="row mt0 footer"> 11416 <div class="row mt0 footer">
11408 <div class="col-md-6" align="left"> 11417 <div class="col-md-6" align="left">
11409 - Generated on 2020-08-27 16:37:10 </div> 11418 + Generated on 2020-08-27 19:23:30 </div>
11410 <div class="col-md-6" align="right"> 11419 <div class="col-md-6" align="right">
11411 <a href="./" target="_blank">社区</a> 11420 <a href="./" target="_blank">社区</a>
11412 </div> 11421 </div>
@@ -30,7 +30,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin @@ -30,7 +30,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
30 {field: 'house_ids', title: __('House_ids')}, 30 {field: 'house_ids', title: __('House_ids')},
31 {field: 'user.nickname', title: __('User.nickname')}, 31 {field: 'user.nickname', title: __('User.nickname')},
32 {field: 'store_name', title: __('Store_name')}, 32 {field: 'store_name', title: __('Store_name')},
33 - {field: 'industry.name', title: __('Industry.name')}, 33 + {field: 'industry_id', title: __('Industry_id')},
34 {field: 'name', title: __('Name')}, 34 {field: 'name', title: __('Name')},
35 {field: 'mobile', title: __('Mobile')}, 35 {field: 'mobile', title: __('Mobile')},
36 {field: 'license', title: __('License'),operate: false,events:Table.api.events.image,formatter: Table.api.formatter.image}, 36 {field: 'license', title: __('License'),operate: false,events:Table.api.events.image,formatter: Table.api.formatter.image},