ECJiaWiki:Api:platform platform account list api

来自ECJiaWiki
跳到导航 跳到搜索

应用场景

获取公众平台列表

接口名称

platform_account_list

请求参数

字段名 变量名 必填 类型 示例值 描述
店铺ID shop_id 可选 int 店铺ID,默认为0
平台 platform 可选 varchar 平台,wechat 微信,weapp 小程序

举例如下

成功举例如下

CONTENT: Royalcms\Component\Database\Eloquent\Collection Object
(
    [items:protected] => Array
        (
            [0] => Ecjia\App\Platform\Models\PlatformAccountModel Object
                (
                    [table:protected] => platform_account
                    [primaryKey:protected] => id
                    [fillable:protected] => Array
                        (
                            [0] => uuid
                            [1] => platform
                            [2] => password
                            [3] => type
                            [4] => shop_id
                            [5] => name
                            [6] => logo
                            [7] => token
                            [8] => aeskey
                            [9] => appid
                            [10] => appsecret
                            [11] => add_time
                            [12] => sort
                            [13] => status
                        )

                    [timestamps] => 
                    [connection:protected] => 
                    [perPage:protected] => 15
                    [incrementing] => 1
                    [attributes:protected] => Array
                        (
                            [id] => 1
                            [uuid] => 3bba40c45b4945679000e7da4dafc9db
                            [platform] => wechat
                            [type] => 3
                            [shop_id] => 0
                            [name] => 测试
                            [logo] => 
                            [token] => ecjia182756pbhf4towzv
                            [aeskey] => 
                            [appid] => wx0cda5e8a49865bc7
                            [appsecret] => b34ef08a2d8af4daa61002ec396bb5bb
                            [add_time] => 1536775581
                            [sort] => 0
                            [status] => 1
                        )

                    [original:protected] => Array
                        (
                            [id] => 1
                            [uuid] => 3bba40c45b4945679000e7da4dafc9db
                            [platform] => wechat
                            [type] => 3
                            [shop_id] => 0
                            [name] => 测试
                            [logo] => 
                            [token] => ecjia182756pbhf4towzv
                            [aeskey] => 
                            [appid] => wx0cda5e8a49865bc7
                            [appsecret] => b34ef08a2d8af4daa61002ec396bb5bb
                            [add_time] => 1536775581
                            [sort] => 0
                            [status] => 1
                        )

                    [relations:protected] => Array
                        (
                        )

                    [hidden:protected] => Array
                        (
                        )

                    [visible:protected] => Array
                        (
                        )

                    [appends:protected] => Array
                        (
                        )

                    [guarded:protected] => Array
                        (
                            [0] => *
                        )

                    [dates:protected] => Array
                        (
                        )

                    [dateFormat:protected] => 
                    [casts:protected] => Array
                        (
                        )

                    [touches:protected] => Array
                        (
                        )

                    [observables:protected] => Array
                        (
                        )

                    [with:protected] => Array
                        (
                        )

                    [morphClass:protected] => 
                    [exists] => 1
                    [wasRecentlyCreated] => 
                )

        )

)

失败举例如下


注:错误编码