Пример #1
0
 function api_3_0_order()
 {
     parent::shop_api_object();
     $this->orderMdl =& $this->system->loadModel('trading/order');
     $this->memberMdl =& $this->system->loadModel('member/member');
     // 定义支付方式映射,支付方式来自中心
     $this->payment_method = array(0 => '-1', 2 => '30');
 }
Пример #2
0
 function _filter($filter)
 {
     $where = array();
     if (isset($filter['last_modify_st_time'])) {
         $where[] = 'last_modify >' . intval($filter['last_modify_st_time']);
     }
     if (isset($filter['last_modify_en_time'])) {
         $where[] = 'last_modify <' . intval($filter['last_modify_en_time']);
     }
     return parent::_filter($where, $filter);
 }
 function _filter($filter)
 {
     $where = $this->before_filter($filter);
     return parent::_filter($where, $filter);
 }
Пример #4
0
 function __construct()
 {
     parent::__construct();
     $this->orderMdl = $this->system->loadModel('trading/order');
 }
Пример #5
0
 /**
  * 订单模块的过滤赛选器
  * @param 赛选条件
  * @author DreamDream
  * @return 过滤过的筛选条件
  */
 function _filter($filter)
 {
     $where = array();
     if (isset($filter['last_modify_st_time'])) {
         $where[] = ' last_change_time >=' . intval($filter['last_modify_st_time']);
     }
     if (isset($filter['last_modify_en_time'])) {
         $where[] = ' last_change_time <' . intval($filter['last_modify_en_time']);
     }
     if (isset($filter['status'])) {
         $where[] = ' status ="' . $filter['status'] . '"';
     }
     if (isset($filter['order_id'])) {
         $where[] = ' order_id IN (' . $filter['order_id'] . ')';
     }
     if (isset($filter['ship_status'])) {
         $where[] = ' ship_status ="' . $filter['ship_status'] . '"';
     }
     if (isset($filter['pay_status'])) {
         $where[] = ' pay_status ="' . $filter['pay_status'] . '"';
     }
     return parent::_filter($where, $filter);
 }
Пример #6
0
 /**
  * 商品模块的过滤赛选器
  * @param 赛选条件
  * @author DreamDream
  * @return 过滤过的筛选条件
  */
 function _filter($filter)
 {
     $where = array();
     if ($filter['last_modify_st_time'] == '0') {
         $where[] = '((last_modify >=' . intval($filter['last_modify_st_time']) . ' or last_modify <' . intval($filter['last_modify_en_time']) . ') or last_modify is null)';
     } else {
         if (isset($filter['last_modify_st_time'])) {
             $where[] = 'last_modify >=' . intval($filter['last_modify_st_time']);
         }
         if (isset($filter['last_modify_en_time'])) {
             $where[] = 'last_modify <' . intval($filter['last_modify_en_time']);
         }
     }
     if (isset($filter['cat_id'])) {
         $where[] = 'cat_id =' . $filter['cat_id'];
     }
     if (isset($filter['deleted'])) {
         $where[] = ' ( disabled="true" or marketable="false") ';
     } else {
         $where[] = 'disabled="false"';
         $where[] = 'marketable="true"';
         $where[] = 'goods_type!="bind"';
     }
     return parent::_filter($where, $filter);
 }
Пример #7
0
 function api_3_0_spec()
 {
     parent::shop_api_object();
 }
Пример #8
0
 function _skufilter($filter)
 {
     if ($filter['name']) {
         $where[] = " name ='" . $filter['name'] . "'";
     }
     if ($filter['bn']) {
         $where[] = " bn ='" . $filter['bn'] . "'";
     }
     if ($filter['goods_c_id']) {
         $where[] = " goods_id IN (" . $filter['goods_c_id'] . ")";
     }
     if ($filter['goods_b_id']) {
         $where[] = " goods_id IN (" . $filter['goods_b_id'] . ")";
     }
     $where[] = ' 1';
     return parent::_filter($where, $filter);
 }
Пример #9
0
 function api_3_0_member()
 {
     parent::shop_api_object();
 }