获取分销员list接口可用,但添加用户为分销员报错, 接口: https://open.youzan.com/api/oauthentry/youzan.salesman.account/3.0.0/add
"error_response" => %{
"code" => 140400200,
"message" => "shop closed salesman plug-in"
iex(79)> Sale.get_salesman_list(0, 20)
[debug] QUERY OK source="tokens" db=5.7ms queue=0.1ms
SELECT t0.`id`, t0.`ak`, t0.`entity`, t0.`env`, t0.`expired_at`, t0.`extra`, t0.`namespace`, t0.`sk`, t0.`token`, t0.`inserted_at`, t0.`updated_at` FROM `tokens` AS t0 WHERE (((((t0.`ak` = ?) AND (t0.`entity` = ?)) AND (t0.`env` = ?)) AND (t0.`namespace` = ?)) AND (t0.`sk` = ?)) ["6a773244c0dc915b1e", "40565171", "dev", "youzan", "2331353d2096eae028644d1b2e24526a"]
{:ok, %{"response" => %{"accounts" => [], "total_results" => 0}}}
iex(80)> Sale.add_salesman("15881049677")
[debug] QUERY OK source="tokens" db=15.4ms queue=0.1ms
SELECT t0.`id`, t0.`ak`, t0.`entity`, t0.`env`, t0.`expired_at`, t0.`extra`, t0.`namespace`, t0.`sk`, t0.`token`, t0.`inserted_at`, t0.`updated_at` FROM `tokens` AS t0 WHERE (((((t0.`ak` = ?) AND (t0.`entity` = ?)) AND (t0.`env` = ?)) AND (t0.`namespace` = ?)) AND (t0.`sk` = ?)) ["6a773244c0dc915b1e", "40565171", "dev", "youzan", "2331353d2096eae028644d1b2e24526a"]
{:ok,
%{
"error_response" => %{
"code" => 140400200,
"message" => "shop closed salesman plug-in"
}
}}
iex(81)>
|
|
用手机打开
收藏
赞 0
···
回复
|
|
|
|