ECJiaWiki:Quickpay quickpay activity list api

来自ECJiaWiki
跳到导航 跳到搜索

应用场景

买单活动列表

接口名称

quickpay_activity_list

请求参数

字段名 变量名 必填 类型 示例值 描述
店铺id store_id 可选 INT 62 店铺id

举例如下

$quickpay_activity_list = RC_Api::api('quickpay', 'quickpay_activity_list',array('store_id' => 62));


成功举例如下

CONTENT: Array
(
    [list] => Array
        (
            [0] => Array
                (
                    [id] => 1
                    [store_id] => 62
                    [title] => 优惠买单
                    [description] => 优惠买单
                    [quickpay_type] => quickpay
                    [activity_type] => discount
                    [activity_value] => 
                    [limit_time_type] => nolimit
                    [limit_time_weekly] => 0
                    [limit_time_daily] => 
                    [limit_time_exclude] => 
                    [start_time] => 1541059200
                    [end_time] => 1543651200
                    [use_integral] => close
                    [use_bonus] => close
                    [enabled] => 1
                    [label_activity_type] => 价格折扣
                    [formated_start_time] => 2018-11-02
                    [formated_end_time] => 2018-12-02
                )

        )

    [page] => Array
        (
            [total] => 1
            [count] => 1
            [more] => 0
        )

)

失败举例如下

CONTENT: ecjia_error Object
(
    [errors:Royalcms\Component\Error\Error:private] => Array
        (
            [invalid_parameter] => Array
                (
                    [0] => 调用api文件,quickpay_activity_list,参数无效
                )

        )

    [error_data:Royalcms\Component\Error\Error:private] => Array
        (
        )

)

注:错误编码