producttemp

This commit is contained in:
AvantLiu 2021-10-29 13:49:08 +08:00
parent 3c79a80a48
commit 167c7a1c5b
4 changed files with 7 additions and 3 deletions

BIN
apps.zip Normal file

Binary file not shown.

View File

@ -214,18 +214,19 @@ get_objectid(Class, Map) ->
<<"Product">> ->
DevType = maps:get(<<"devType">>, Map, <<"">>),
Category = maps:get(<<"category">>, Map, <<"">>),
Categoryid = maps:get(<<"objectId">>, Category, <<"">>),
Name = maps:get(<<"name">>, Map, <<"">>),
<<Pid:10/binary, _/binary>> = dgiot_utils:to_md5(<<"Product", Category/binary, DevType/binary, Name/binary>>),
<<Pid:10/binary, _/binary>> = dgiot_utils:to_md5(<<"Product", Categoryid/binary, DevType/binary, Name/binary>>),
Map#{
<<"objectId">> => Pid
};
<<"post_classes_producttemplet">> ->
get_objectid(<<"ProductTemplet">>, Map);
<<"ProductTemplet">> ->
NetType = maps:get(<<"netType">>, Map, <<"">>),
Category = maps:get(<<"category">>, Map, <<"">>),
Categoryid = maps:get(<<"objectId">>, Category, <<"">>),
Name = maps:get(<<"name">>, Map, <<"">>),
<<Pid:10/binary, _/binary>> = dgiot_utils:to_md5(<<"ProductTemplet", Category/binary, NetType/binary, Name/binary>>),
<<Pid:10/binary, _/binary>> = dgiot_utils:to_md5(<<"ProductTemplet", Categoryid/binary, Name/binary>>),
Map#{
<<"objectId">> => Pid
};

View File

@ -26,3 +26,4 @@
{dgiot_group, {{enable_plugin_dgiot_group}}}.
{dgiot_shouyincheng, {{enable_plugin_dgiot_shouyincheng}}}.
{dgiot_gb26875, {{enable_plugin_dgiot_gb26875}}}.
{dgiot_esports, {{enable_plugin_dgiot_esports}}}.

View File

@ -221,6 +221,7 @@ overlay_vars_rel(RelType) ->
, {enable_plugin_dgiot_ffmpeg, true}
, {enable_plugin_dgiot_shouyincheng, true}
, {enable_plugin_dgiot_gb26875, true}
, {enable_plugin_dgiot_esports, true}
, {vm_args_file, VmArgs}
].
@ -352,6 +353,7 @@ relx_plugin_apps_per_rel(cloud) ->
, dgiot_ffmpeg
, dgiot_shouyincheng
, dgiot_gb26875
, dgiot_esports
];
relx_plugin_apps_per_rel(edge) ->
[].