fix test
This commit is contained in:
parent
715103bd1f
commit
771896045b
@ -36,6 +36,14 @@ handle_request("POST", "/test/upgrade", _, PostParams) ->
|
|||||||
},
|
},
|
||||||
{ok, 200, sdlan_util:json_data(Data)};
|
{ok, 200, sdlan_util:json_data(Data)};
|
||||||
|
|
||||||
|
handle_request("POST", "/test/login_with_account", _, PostParams) ->
|
||||||
|
logger:debug("[test_handler] get post params: ~p", [PostParams]),
|
||||||
|
Data = #{
|
||||||
|
<<"access_token">> => <<"cookie:1234">>,
|
||||||
|
<<"network_id">> => 1234
|
||||||
|
},
|
||||||
|
{ok, 200, sdlan_util:json_data(Data)};
|
||||||
|
|
||||||
handle_request("GET", "/test/get_all_networks", _, _) ->
|
handle_request("GET", "/test/get_all_networks", _, _) ->
|
||||||
{ok, 200, sdlan_util:json_data([8, 9, 10])};
|
{ok, 200, sdlan_util:json_data([8, 9, 10])};
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user