zoukankan      html  css  js  c++  java
  • ECSHOP笔记(商品类 三)

    /**
    * 获得指定商品的各会员等级对应的价格
    * @position goods.php
    * @access  public
    * @param   integer     $goods_id   商品ID

    * @param   integer     $shop_price 本店售价

    * @return  array
    */
    get_user_rank_prices($goods_id, $shop_price)

    array(2) {
      [1] => array(2) {
        ["rank_name"] => string(12) "注册用户"
        ["price"] => string(9) "¥300元"
      }
      [2] => array(2) {
        ["rank_name"] => string(3) "vip"
        ["price"] => string(9) "¥285元"
      }
    }

    /**
    * 获取销售排行榜
    * @position lib_custom.php
    * @access  public
    * @param   num  $time   查询的时间范围,单位为天
    * @param   num  $limit   数量
    * @param   string  $cats   查询的分类id,可以有多个,以逗隔开,如'1,2,4'

    */
    get_sale_rank($time=7,$limit=10,$cats = '')

    array(2) {
      [0] => array(9) {
        ["goods_id"] => string(2) "23"
        ["goods_name"] => string(12) "诺基亚N96"
        ["shop_price"] => string(7) "3700.00"
        ["goods_thumb"] => string(52) "images/200905/thumb_img/23_thumb_G_1241971556399.jpg"
        ["goods_number"] => string(2) "21"
        ["short_name"] => string(12) "诺基亚N96"
        ["url"] => string(15) "goods.php?id=23"
        ["thumb"] => string(52) "images/200905/thumb_img/23_thumb_G_1241971556399.jpg"
        ["price"] => string(10) "¥3700元"
      }
      [1] => array(9) {
        ["goods_id"] => string(1) "8"
        ["goods_name"] => string(13) "飞利浦9@9v"
        ["shop_price"] => string(6) "399.00"
        ["goods_thumb"] => string(51) "images/200905/thumb_img/8_thumb_G_1241425513488.jpg"
        ["goods_number"] => string(1) "1"
        ["short_name"] => string(13) "飞利浦9@9v"
        ["url"] => string(14) "goods.php?id=8"
        ["thumb"] => string(51) "images/200905/thumb_img/8_thumb_G_1241425513488.jpg"
        ["price"] => string(9) "¥399元"
      }
    }
  • 相关阅读:
    23种设计模式
    Java实现动态代理的两种方式
    jQuery easyui combobox级联及内容联想
    使用Spring MVC统一异常处理
    springmvc下使用kaptcha做验证码
    Hadoop及spark介绍
    jQuery easyui 之 expend row
    Http 1.1协议
    公钥、私钥、CA认证、数字签名、U盾
    SOA架构介绍
  • 原文地址:https://www.cnblogs.com/2050/p/1961413.html
Copyright © 2011-2022 走看看