Jelajahi Sumber

登录页加入返回首页

541469799@qq.com 8 bulan lalu
induk
melakukan
7de97f28f1
1 mengubah file dengan 1 tambahan dan 0 penghapusan
  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);