Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

Prod.php 1.2 KiB

il y a 3 ans
12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. /**
  3. *
  4. * ============================================================================
  5. * * 版权所有 蜘蛛出行 * *
  6. * 网站地址: http://www.zhizhuchuxing.com
  7. * ----------------------------------------------------------------------------
  8. * 这不是一个自由软件!您只能在不用于商业目的的前提下对程序代码进行修改和
  9. * 使用;不允许对程序代码以任何形式任何目的的再发布。
  10. * ============================================================================
  11. * Author By: 倪宗锋
  12. * PhpStorm Prod.php
  13. * Create By 2017/6/28 10:15 $
  14. */
  15. namespace zzcx\service\home;
  16. use common\models\ProdCategory;
  17. use common\models\ProdComment;
  18. use common\util\Util;
  19. class Prod
  20. {
  21. /**
  22. * Des:获取产品的评论
  23. * Name: getProdComment
  24. * @param $param
  25. * @return array
  26. * @author 倪宗锋
  27. */
  28. public function getProdComment($param)
  29. {
  30. if (Util::checkPattern('intVal', $param['pro_cate_id']) == false) {
  31. return Util::returnArrEr('params error');
  32. }
  33. //获取产品的评价
  34. $prodComment = new ProdComment();
  35. $list = $prodComment->getListByProdId($param);
  36. return Util::returnArrSu('', ['list' => $list]);
  37. }
  38. }