Browse Source

checkredis

yuenan
娄梦宁 3 years ago
parent
commit
fe71ca35e1
3 changed files with 4 additions and 5 deletions
  1. +0
    -1
      addons/unishop/controller/Product.php
  2. +2
    -2
      application/admin/view/unishop/evaluate/add.html
  3. +2
    -2
      application/admin/view/unishop/evaluate/edit.html

+ 0
- 1
addons/unishop/controller/Product.php View File

@@ -209,7 +209,6 @@ class Product extends Base

// 评价信息
$evaluate = (new Evaluate)->alias('e')
->join('user u', 'e.user_id = u.id')
->where(['e.product_id' => $productId])
->field('e.*')
->order(['toptime' => 'desc', 'createtime' => 'desc'])


+ 2
- 2
application/admin/view/unishop/evaluate/add.html View File

@@ -7,9 +7,9 @@
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
<label class="control-label col-xs-12 col-sm-2">{:__('虚拟用户名')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="username" class="form-control selectpage" name="row[user_id]" type="text" value="">
<input id="c-username" data-rule="required" class="form-control" name="row[username]" type="text">
</div>
</div>
<div class="form-group">


+ 2
- 2
application/admin/view/unishop/evaluate/edit.html View File

@@ -7,9 +7,9 @@
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
<label class="control-label col-xs-12 col-sm-2">{:__('虚拟用户名')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="username" class="form-control selectpage" name="row[user_id]" type="text" value="{$row.user_id}">
<input id="c-username" data-rule="required" class="form-control" name="row[username]" type="text" value="{$row.username}">
</div>
</div>
<div class="form-group">


Loading…
Cancel
Save