Ver código fonte

登录页加入返回首页

541469799@qq.com 8 meses atrás
pai
commit
7de97f28f1
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1 0
      app/index/controller/Index.php

+ 1 - 0
app/index/controller/Index.php

@@ -159,6 +159,7 @@ class Index extends Controller
         }
         $goods = $goods->toArray();
         $goods['content'] = html_entity_decode($goods['content']);
+        empty($goods['selling_point']) && $goods['selling_point'] = '0';
 
         $model = new CommentModel;
         $total = $model->rowsTotal($goodsId);