feat: dashboard amisview

This commit is contained in:
dawnwinterLiu 2023-09-08 21:06:50 +08:00
parent 07e21c0ae0
commit 7ac2996d34
5 changed files with 1 additions and 16 deletions

View File

@ -205,7 +205,6 @@ do_request(get_thingecho, _Args, _Context, _Req) ->
do_request(post_cookie, #{<<"UserSession">> := UserSession, <<"cookie">> := Cookie} = _Args, _Context, _Req) ->
io:format("~s ~p ~p ~n",[?FILE, ?LINE,Cookie]),
case dgiot_parse_auth:put_cookie(UserSession, Cookie) of
true ->
{ok, #{<<"result">> => <<"success">>}};
@ -214,5 +213,4 @@ do_request(post_cookie, #{<<"UserSession">> := UserSession, <<"cookie">> := Cook
end;
do_request(_OperationId, _Args, _Context, _Req) ->
io:format("~s ~p ~p ~n",[?FILE, ?LINE,_OperationId]),
{error, <<"Not Allowed.">>}.

View File

@ -360,7 +360,7 @@ do_request(post_verify_code_action, #{<<"account">> := Account, <<"code">> := Co
{400, unicode:characters_to_binary(<<"验证码未通过!"/utf8>>)}
end;
%% System : / :/
%% OperationId:post_excel_id
%% :POST /iotapi/excel_id
do_request(post_excel_id, #{<<"id">> := ChannelId, <<"data">> := Data} = _Args, Context, Req) ->

View File

@ -227,7 +227,6 @@ do_request(get_roleuser, #{<<"where">> := Where} = Filter, #{<<"sessionToken">>
undefined ->
<<"{}">>;
V ->
io:format("~s ~p V ~p ~n",[?FILE, ?LINE, V]),
V
end,
dgiot_parse_auth:get_roleuser(Filter#{<<"where">> => jsx:decode(Where, [return_maps]), <<"userfilter">> => jsx:decode(UserFilter, [return_maps])}, SessionToken);

View File

@ -27,7 +27,3 @@
{dgiot_factory, {{enable_plugin_dgiot_factory}}}.
{dgiot_printer, {{enable_plugin_dgiot_printer}}}.
{dgiot_location, {{enable_plugin_dgiot_location}}}.
{dgiot_current, {{enable_plugin_dgiot_current}}}.
{dgiot_workshop, {{enable_plugin_dgiot_workshop}}}.
{dgiot_customer, {{enable_plugin_dgiot_customer}}}.
{dgiot_zhixin, {{enable_plugin_dgiot_zhixin}}}.

View File

@ -230,10 +230,6 @@ overlay_vars_rel(RelType) ->
, {enable_plugin_dgiot_factory, true}
, {enable_plugin_dgiot_printer, true}
, {enable_plugin_dgiot_location, true}
, {enable_plugin_dgiot_current, true}
, {enable_plugin_dgiot_workshop, true}
, {enable_plugin_dgiot_customer, true}
, {enable_plugin_dgiot_zhixin, true}
, {vm_args_file, VmArgs}
].
@ -356,10 +352,6 @@ relx_plugin_apps_per_rel(cloud) ->
, dgiot_factory
, dgiot_printer
, dgiot_location
, dgiot_workshop
, dgiot_current
, dgiot_customer
, dgiot_zhixin
];
relx_plugin_apps_per_rel(edge) ->
[].