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

行业调整

... ... @@ -62,6 +62,7 @@ class Config
'key' => 'b6iGEk2ZPhj8ElHuWX0slbxojCVSn8oN',
'cert_path' => ROOT_PATH.'/addons/wechat/cert/apiclient_cert.pem', // XXX: 绝对路径!!!!
'key_path' => ROOT_PATH.'/addons/wechat/cert/apiclient_key.pem', // XXX: 绝对路径!!!!
'notify_url' => '',
// 'device_info' => '013467007045764',
// 'sub_app_id' => '',
// 'sub_merchant_id' => '',
... ...
... ... @@ -57,13 +57,13 @@ class Store extends Backend
}
list($where, $sort, $order, $offset, $limit) = $this->buildparams();
$total = $this->model
->with(['admin','user','industry'])
->with(['admin','user'])
->where($where)
->order($sort, $order)
->count();
$list = $this->model
->with(['admin','user','industry'])
->with(['admin','user'])
->where($where)
->order($sort, $order)
->limit($offset, $limit)
... ... @@ -73,7 +73,6 @@ class Store extends Backend
$row->getRelation('admin')->visible(['nickname']);
$row->getRelation('user')->visible(['nickname']);
$row->getRelation('industry')->visible(['name']);
}
$list = collection($list)->toArray();
$result = array("total" => $total, "rows" => $list);
... ...
... ... @@ -136,7 +136,7 @@ class Store extends Api
* @ApiHeaders (name=token, type=string, required=true, description="请求的Token")
* @ApiParams (name="store_name", type="string", required=true, description="店铺名称")
* @ApiParams (name="house_ids", type="string", sample="店铺1id,店铺2id", required=true, description="入驻社区")
* @ApiParams (name="industry_id", type="string", required=true, description="行业/关键词id")
* @ApiParams (name="industry_id", type="string", required=true, description="行业/关键词")
* @ApiParams (name="name", type="string", required=true, description="联系人姓名")
* @ApiParams (name="mobile", type="string", required=true, description="联系人手机号")
* @ApiParams (name="license", type="string", required=true, description="营业执照")
... ...
... ... @@ -6978,7 +6978,7 @@
<td>industry_id</td>
<td>string</td>
<td></td>
<td>行业/关键词id</td>
<td>行业/关键词</td>
</tr>
<tr>
<td>name</td>
... ... @@ -7037,7 +7037,7 @@
</div>
<div class="form-group">
<label class="control-label" for="industry_id">industry_id</label>
<input type="string" class="form-control input-sm" id="industry_id" required placeholder="行业/关键词id" name="industry_id">
<input type="string" class="form-control input-sm" id="industry_id" required placeholder="行业/关键词" name="industry_id">
</div>
<div class="form-group">
<label class="control-label" for="name">name</label>
... ... @@ -7619,7 +7619,15 @@
<div class="col-md-12">
<pre id="sample_response48">{
'code':'1',
'msg':'返回成功'
'msg':'返回成功',
"data": {
"id": 1,
"store_name": "123",
"image_arr": [
"http://cloud.caiyunpan.brotop.cn/assets/img/qrcode.png",
"http://cloud.caiyunpan.brotop.cn/assets/img/qrcode.png"
]
}
}</pre>
</div>
</div>
... ... @@ -8878,13 +8886,14 @@
'code':'1',
'msg':'返回成功',
"data": {
"list": [
{
"id": 1,
"name": "行业名称",
"weigh": 0,
}
]
"list": [
{
"id": 1,
"money": "充值金额",
"score": "赠送板币",
"weigh": 1,
},
]
}
}</pre>
</div>
... ... @@ -11406,7 +11415,7 @@
<div class="row mt0 footer">
<div class="col-md-6" align="left">
Generated on 2020-08-27 16:37:10 </div>
Generated on 2020-08-27 19:23:30 </div>
<div class="col-md-6" align="right">
<a href="./" target="_blank">社区</a>
</div>
... ...
... ... @@ -30,7 +30,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
{field: 'house_ids', title: __('House_ids')},
{field: 'user.nickname', title: __('User.nickname')},
{field: 'store_name', title: __('Store_name')},
{field: 'industry.name', title: __('Industry.name')},
{field: 'industry_id', title: __('Industry_id')},
{field: 'name', title: __('Name')},
{field: 'mobile', title: __('Mobile')},
{field: 'license', title: __('License'),operate: false,events:Table.api.events.image,formatter: Table.api.formatter.image},
... ...