{"id":1696,"date":"2023-11-30T11:08:04","date_gmt":"2023-11-30T03:08:04","guid":{"rendered":"http:\/\/www.plm.cn\/?p=1696"},"modified":"2023-12-13T08:42:17","modified_gmt":"2023-12-13T00:42:17","slug":"%e9%80%9a%e8%bf%87mobox%e5%af%bc%e5%85%a5%e9%a1%b9%e7%9b%ae%e6%b8%85%e5%8d%95%e8%af%a6%e7%bb%86%e8%af%b4%e6%98%8e","status":"publish","type":"post","link":"http:\/\/www.plm.cn\/1696\/","title":{"rendered":"\u901a\u8fc7Mobox\u5bfc\u5165\u9879\u76ee\u6e05\u5355\u8be6\u7ec6\u8bf4\u660e"},"content":{"rendered":"
<\/p>\n
\u6211\u4eec\u5728\u5b9e\u65bdGungho\u9879\u76ee\u7ba1\u7406\u7cfb\u7edf\u521a\u4e0a\u7ebf\u7684\u65f6\u5019\uff0c\u5176\u5b9e\u7528\u6237\u624b\u4e0a\u6709\u5f88\u591a\u7684\u5386\u53f2\u9879\u76ee\u9700\u8981\u5bfc\u5165\u8fdb\u6765\u3002\u800c\u4e14\u7528\u6237\u7684\u9879\u76ee\u5c5e\u6027\u4e0e\u6211\u4eec\u6807\u51c6\u7684\u9879\u76ee\u5c5e\u6027\u5dee\u5f02\u5f88\u5927\u3002\u4e3a\u6b64\uff0c\u6211\u4eec\u9700\u8981\u5bf9Gungho\u7684\u9879\u76ee\u6570\u636e\u5c5e\u6027\u8fdb\u884c\u6269\u5ef6\u3002\u800c\u8fd9\u4e2a\u6269\u5ef6\u8bbe\u7f6e\u662f\u5728Mobox\u6570\u636e\u5e73\u53f0\u6765\u5b8c\u6210\u7684\u3002\u4e3a\u6b64\u6211\u4eec\u9700\u8981\u505a2\u4e2a\u4e8b\u60c5\uff1a<\/p>\n
\u7ed9\u9879\u76ee\u8bbe\u7f6e\u6269\u5c55\u5c5e\u6027\uff0c\u7528\u4e8e\u5bf9\u7528\u6237\u9700\u6c42\u7684\u9002\u5e94<\/p>\n
\u9700\u8981\u5c06\u4f01\u4e1a\u5386\u53f2\u9879\u76ee\u6e05\u5355\u4e00\u6b21\u6027\u5bfc\u5165<\/p>\n
<\/p>\n
<\/p>\n
<\/p>\n
\u56e0\u4e3a\uff0c\u6211\u4eec\u662f\u4e3aGungho\u7684\u9879\u76ee\u7ba1\u7406\u505a\u914d\u5957\uff0c\u6240\u4ee5\u5728mobox\u5efa\u7acb\u6570\u636e\u6a21\u578b\u7684\u65f6\u5019\uff0c\u6709\u7c7b\u578b\u9700\u8981\u9009\u62e9\u00a0 \uff0c\u4e1a\u52a1\u7c7b\u578b\u5fc5\u987b\u662f \u201c\u9879\u76ee\u201d<\/p>\n
<\/p>\n
\u76ee\u7684\uff0c\u5b9a\u4e49\u9002\u7528\u4f01\u4e1a\u4e2a\u6027\u9700\u6c42\u7684\u9879\u76ee\u7ba1\u7406\u529f\u80fd\u53ca\u754c\u9762<\/p>\n
<\/p>\n
<\/p>\n
<\/p>\n
\u6839\u636e\u9700\u6c42 \u81ea\u5b9a\u4e49\u529f\u80fd<\/p>\n
<\/p>\n
<\/p>\n
\u6839\u636e\u9700\u6c42\uff0c\u52a0\u5165\u5bf9\u5e94\u811a\u672c<\/p>\n
<\/p>\n
<\/p>\n
\u65b9\u6cd5\u4e00\uff1a \u00a0<\/strong>\uff08\u8fd9\u4e2a\u4e00\u822c\u5728mobox<\/strong>\u6570\u636e\u5bf9\u8c61\u521b\u5efa\u540e\u4e8b\u4ef6\u8c03\u7528\uff09<\/strong><\/p>\n Mobox \u6570\u636e\u5bf9\u8c61\u5148\u521b\u5efa \u2013\u300b\u4e4b\u540e\u901a\u8fc7\u811a\u672c\u751f\u6210Gungho\u7684\u9879\u76ee \u2013\u300b\u5f97\u5230Gungho\u9879\u76ee\u7684prj_id \u2013\u300b\u66f4\u65b0mobox\u6570\u636e\u5bf9\u8c61\u7684 G_PRJ_ID<\/p>\n <\/p>\n local strPrjInfo<\/p>\n strPrjInfo = ‘{“type<\/span>“:”\u6c49\u548c\u9879\u76ee”,”name<\/span>“:”‘ .. strPrjName .. ‘”,’<\/p>\n strPrjInfo = strPrjInfo .. ‘”pm_login<\/span>“:”‘ .. strPMID .. ‘”,”pm_name<\/span>“:”‘ .. strPMName .. ‘”,’<\/p>\n strPrjInfo = strPrjInfo .. ‘”pd_login<\/span>“:”‘ .. strPDID .. ‘”,”pd_name<\/span>“:”‘ .. strPDName .. ‘”,’<\/p>\n — type\uff1a\u5b9a\u4e49\u4e86\u9879\u76ee\u7c7b\u578b\u00a0 \u00a0 \u00a0 \u00a0name\uff1a\u9879\u76ee\u540d\u79f0<\/p>\n <\/p>\n strPrjInfo = strPrjInfo .. ‘”class_name<\/span>“:”\u9879\u76ee”,”obj_id<\/span>“:”‘ .. strObjID .. ‘”,’<\/p>\n — class_name\uff1a\u6570\u636e\u5bf9\u8c61\u540d\u79f0\u00a0 obj_id\uff1a\u6570\u636e\u5bf9\u8c61ID \uff0cMobox\u6570\u636e\u521b\u5efa\u540e\u83b7\u53d6<\/p>\n <\/p>\n strPrjInfo = strPrjInfo .. ‘”code<\/span>“:”‘ .. strPrjCode .. ‘”,’<\/p>\n strPrjInfo = strPrjInfo .. ‘”role<\/span>“:[{“name”:”\u9879\u76ee\u603b\u76d1”,”user”:[{“login”:”‘ .. strPDID .. ‘”,”name”:”‘ ..\u00a0strPDName .. ‘”}]}’ .. strPrjRoleMember .. ‘]}’<\/p>\n — code\uff1a\u9879\u76ee\u7f16\u53f7\u00a0 role\uff1a\u89d2\u8272\u76f8\u5173<\/p>\n <\/p>\n — \u5411\u5171\u597d\u7cfb\u7edf\u521b\u5efa\u4e00\u4e2a\u9879\u76ee<\/p>\n nRet, strRetInfo = mobox.createProject(strLuaDEID, strPrjInfo)<\/span><\/p>\n — strRetInfo\uff1a\u8fd4\u56de\u7684\u662fgungho\u521b\u5efa\u9879\u76ee\u7684ID \uff08prj_id\uff09<\/p>\n if (nRet ~= 0) then<\/p>\n mobox.error(strLuaDEID, strRetInfo)<\/p>\n return<\/p>\n end<\/p>\n — strRetInfo<\/span>\uff1a\u8fd9\u4e2a\u8981\u56de\u5199Mobox\u6570\u636e\u5bf9\u8c61\u7684 G_PRJ_ID<\/p>\n <\/p>\n — \u5f97\u5230prj_id \u5c06\u4fe1\u606f\u5199\u5165mobox\u6570\u636e\u5bf9\u8c61\u7684\u4ee3\u7801\uff0c\u8fd9\u91cc\u5c31\u4e0d\u5c55\u73b0\u4e86<\/p><\/blockquote>\n<\/div>\n \u65b9\u6cd5\u4e8c\uff1a \u00a0<\/strong>\uff08\u8fd9\u4e2a\u4e00\u822c\u5728mobox<\/strong>\u6570\u636e\u5bf9\u8c61\u7684\u81ea\u5b9a\u4e49\u4e8b\u4ef6\u5165\u201c\u9879\u76ee\u5bfc\u5165\u201d\u8c03\u7528\uff09<\/strong><\/p>\n Gungho\u7684\u9879\u76ee\u6240\u9700\u7684\u6240\u6709\u4fe1\u606f\uff08\u5305\u62ec\u6269\u5c55\u4fe1\u606f\uff09\u5168\u90e8\u5b9a\u4e49\u597d\uff0c\u4e00\u6b21\u6027\u521b\u5efaGungho\u53caMobox\u6240\u6709\u6570\u636e\u53ca\u5176\u76f8\u5173\u6027<\/p>\n \u00a0strPrjInfo = ‘{“type”:”\u6c49\u548c\u9879\u76ee”,”class_name”:”\u9879\u76ee”,”name”:”‘ .. strPrjName .. ‘”,’<\/p>\n strPrjInfo = strPrjInfo .. ‘”pm_login”:”‘ .. strPMID .. ‘”,”pm_name”:”‘ .. strPMName .. ‘”,’<\/p>\n strPrjInfo = strPrjInfo .. ‘”pd_login”:”‘ .. strPDID .. ‘”,”pd_name”:”‘ .. strPDName .. ‘”,’<\/p>\n strPrjInfo = strPrjInfo .. ‘”code”:”‘ .. strPrjCode .. ‘”,’<\/p>\n <\/p>\n — \u62fc\u63a5\u9879\u76ee\u7684\u89d2\u8272\u5c5e\u6027<\/p>\n strPrjInfo = strPrjInfo .. ‘”role”:[{“name”:”\u9879\u76ee\u603b\u76d1”,”user”:[{“login”:”‘ .. strPDID .. ‘”,”name”:”‘ ..\u00a0 strPDName .. ‘”}]}’ .. strPrjRoleMember .. ‘],’<\/p>\n <\/p>\n — \u62fc\u63a5\u9879\u76ee\u7684\u6269\u5c55\u9879\u76ee\u5c5e\u6027<\/p>\n strPrjInfo = strPrjInfo .. ‘”ext_obj_attr<\/span>“:[‘ .. strAddAttr1 .. ‘]}’<\/p>\n — ext_obj_attr<\/span> \u9879\u76ee\u521b\u5efa\u7684\u65f6\u5019\uff0c\u5e26\u6269\u5c55\u5c5e\u6027<\/span>\uff08strAddAttr1 \u53d8\u91cf\u4e8b\u5148\u62fc\u63a5\u597d\u4e86\uff09<\/p>\n <\/p>\n — \u5e26\u6269\u5c55\u5c5e\u6027\uff0c\u4f1a\u540c\u65f6\u5c06mobox\u6570\u636e\u5bf9\u8c61\u53cagungho\u7684\u9879\u76ee\u90fd\u521b\u5efa\u8d77\u6765\uff0c\u5e76\u5173\u8054\u597d<\/span><\/p>\n nRet, strRetInfo = mobox.createProject(strLuaDEID, strPrjInfo)<\/p>\n –strRetInfo \u8fd4\u56de\u53c2\u6570 \u4e3a\u4e24\u4e2aGUID :\u9879\u76eeID ;<\/p>\n — \u8fd4\u56de\u7684\u5185\u5bb9\u5982\uff1a<\/p>\n — ‘{A52E97CF-BDBE-4EA7-AAD6-949AD5707BF3};{1CB2B481-CA23-42DB-B7A2-546C1EA05364}’<\/p><\/blockquote>\n<\/div>\n \u9879\u76ee\u6e05\u5355\u5bfc\u5165 \u6211\u4eec\u5728\u5b9e\u65bdGungho\u9879\u76ee\u7ba1\u7406\u7cfb\u7edf\u521a\u4e0a\u7ebf\u7684\u65f6\u5019\uff0c\u5176\u5b9e\u7528\u6237\u624b\u4e0a\u6709\u5f88\u591a\u7684\u5386\u53f2\u9879\u76ee\u9700\u8981\u5bfc […]<\/p>\n","protected":false},"author":1,"featured_media":1628,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,5,9,1,12,34],"tags":[31,15,14],"class_list":["post-1696","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-eckf","category-plmcenter","category-pcdoc","category-didaima","category-ssdoc","category-pmgl","tag-didaima","tag-fangan","tag-jiaoben"],"_links":{"self":[{"href":"http:\/\/www.plm.cn\/wp-json\/wp\/v2\/posts\/1696","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.plm.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.plm.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.plm.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.plm.cn\/wp-json\/wp\/v2\/comments?post=1696"}],"version-history":[{"count":2,"href":"http:\/\/www.plm.cn\/wp-json\/wp\/v2\/posts\/1696\/revisions"}],"predecessor-version":[{"id":1698,"href":"http:\/\/www.plm.cn\/wp-json\/wp\/v2\/posts\/1696\/revisions\/1698"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.plm.cn\/wp-json\/wp\/v2\/media\/1628"}],"wp:attachment":[{"href":"http:\/\/www.plm.cn\/wp-json\/wp\/v2\/media?parent=1696"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.plm.cn\/wp-json\/wp\/v2\/categories?post=1696"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.plm.cn\/wp-json\/wp\/v2\/tags?post=1696"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}