mirror of
https://gitee.com/dgiiot/dgiot.git
synced 2024-12-02 12:18:30 +08:00
producttemp
This commit is contained in:
parent
3c79a80a48
commit
167c7a1c5b
@ -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
|
||||
};
|
||||
|
@ -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}}}.
|
||||
|
@ -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) ->
|
||||
[].
|
||||
|
Loading…
Reference in New Issue
Block a user