Constants

CACHE_KEY

CACHE_KEY = array(__CLASS__, 'shop_goods', 'shop_goods_sku') : string

缓存的键列表

Properties

$check

$check : 

Type

Methods

get_unique_id()

get_unique_id() : string

获取一个id号

Returns

string

insert()

insert(array  $data = array(), array  $call_data = array()) : boolean

插入新数据

Parameters

array $data

数据

array $call_data

数据

Returns

boolean

invite_money_reward()

invite_money_reward(string  $shop_order_id) 

发放推荐奖金

Parameters

string $shop_order_id

业务订单ID

update()

update(array  $where = array(), array  $data = array(), array  $call_data = array()) : boolean

更新数据

Parameters

array $where
array $data
array $call_data

Returns

boolean

insert_batch()

insert_batch(array  $data = array()) : boolean

批量插入数据

Parameters

array $data

数据,索引数组

Returns

boolean

select_join_shop_order()

select_join_shop_order(array  $config = array()) : array

连商品订单表,获取多条数据 $config = array( 'where' => array(), //条件 'orderby' => array(), //排序 'limit' => array(0, page_size), //取出条数,默认不限制 'select' => array(),//查询的字段,可以是数组和字符串 );

Parameters

array $config

Returns

array

select()

select(array  $config = array()) : array

获取多条数据 $config = array( 'where' => array(), //条件 'orderby' => array(), //排序 'limit' => array(0, page_size), //取出条数,默认不限制 'select' => array(),//查询的字段,可以是数组和字符串 );

Parameters

array $config

Returns

array

find()

find(string  $id = '') : array

查一条记录,根据主键

Parameters

string $id

商家用户表ID

Returns

array

find_where()

find_where(  $call_where = array()) 

查询一条记录,根据where条件

Parameters

$call_where

update_stock_sales()

update_stock_sales(string  $shop_order_id, integer  $shop_goods_stock_mode) 

成功之后,减库存和加销量 不考虑出错情况

Parameters

string $shop_order_id
integer $shop_goods_stock_mode

select_by_pay()

select_by_pay(string  $shop_order_id) : array

查询商品信息,订单支付

Parameters

string $shop_order_id

[商场订单ID]

Returns

array

calculation_recommend_money()

calculation_recommend_money(integer  $money, string  $recommend_user_id,   $goods_id, string  $user_id) 

计算推荐赏金

Parameters

integer $money

[订单金额]

string $recommend_user_id

[邀请人用户ID]

$goods_id
string $user_id

[消费者的用户ID]

version_yitao_invite_money_reward()

version_yitao_invite_money_reward(\eapie\source\table\shop\[type]  $shop_order_id) : void

易淘分销奖励发放 Undocumented function

Parameters

\eapie\source\table\shop\[type] $shop_order_id

xiletao_reward_send()

xiletao_reward_send(  $shop_order_id = '') 

Parameters

$shop_order_id

_is_emshop()

_is_emshop() 

推荐赏金计算是调用,判断是否为E麦商城,如果为E麦商城,仅普通商品发放奖金,拼团及限时购不发放