\u5e94\u7528\u5206\u53d1\u5e02\u573a<\/a>‘; <\/p>\n\/\/\u4e0a\u4f20\u6587\u4ef6<\/p>\n
$info = $upload->uploadOne($_FILES[‘app’]);<\/p>\n
\/\/\u5224\u65ad\u4e0a\u4f20\u662f\u5426\u6210\u529f<\/p>\n
if(!$info) {<\/p>\n
$this->error($upload->getError());<\/p>\n
}else{<\/p>\n
$app_path = $info[‘savepath’].$info[‘savename’];<\/p>\n
}<\/p>\n
“`<\/p>\n
2.\u751f\u6210\u4e0b\u8f7d\u94fe\u63a5<\/p>\n
\u5728TP\u4e2d\uff0c\u751f\u6210\u4e0b\u8f7d\u94fe\u63a5\u53ef\u4ee5\u4f7f\u7528TP\u7684URL\u751f\u6210\u51fd\u6570\u8fdb\u884c\u5b9e\u73b0\u3002\u5177\u4f53\u5b9e\u73b0\u65b9\u5f0f\u5982\u4e0b\uff1a<\/p>\n
“`<\/p>\n
\/\/\u751f\u6210\u4e0b\u8f7d\u94fe\u63a5<\/p>\n
$url = U(‘Download\/download’,array(‘app_path’=>$app_path),”,true);<\/p>\n
\/\/\u8fd4\u56de\u4e0b\u8f7d\u94fe\u63a5<\/p>\n
return $url;<\/p>\n
“`<\/p>\n
3.\u751f\u6210\u4e8c\u7ef4\u7801<\/p>\n
\u5728TP\u4e2d\uff0c\u751f\u6210\u4e8c\u7ef4\u7801\u53ef\u4ee5\u4f7f\u7528\u7b2c\u4e09\u65b9\u5e93phpqrcode\u8fdb\u884c\u5b9e\u73b0\u3002\u5177\u4f53\u5b9e\u73b0\u65b9\u5f0f\u5982\u4e0b\uff1a<\/p>\n
“`<\/p>\n
\/\/\u5f15\u5165phpqrcode\u5e93<\/p>\n
vendor(‘phpqrcode.phpqrcode’);<\/p>\n
\/\/\u8bbe\u7f6e\u4e8c\u7ef4\u7801\u5185\u5bb9<\/p>\n
$content = $url;<\/p>\n
\/\/\u8bbe\u7f6e\u4e8c\u7ef4\u7801\u4fdd\u5b58\u8def\u5f84<\/p>\n
$qrcode_path = ‘.\/Public\/qrcode\/’.$app_name.’.png’;<\/p>\n
\/\/\u8bbe\u7f6e\u4e8c\u7ef4\u7801\u5927\u5c0f<\/p>\n
$size = 10;<\/p>\n
\/\/\u8bbe\u7f6e\u4e8c\u7ef4\u7801\u7ea0\u9519\u7ea7\u522b<\/p>\n
$errorCorrectionLevel = ‘H’;<\/p>\n
\/\/\u751f\u6210\u4e8c\u7ef4\u7801<\/p>\n
\\QRcode::png($content, $qrcode_path, $errorCorrectionLevel, $size, 2);<\/p>\n
\/\/\u8fd4\u56de\u4e8c\u7ef4\u7801\u8def\u5f84<\/p>\n
return $qrcode_path;<\/p>\n
“`<\/p>\n
\u4ee5\u4e0a\u5c31\u662fTP\u5b9e\u73b0app\u5206\u53d1\u7684\u6e90\u7801\uff0c\u901a\u8fc7\u4e0a\u4f20app\u3001\u751f\u6210\u4e0b\u8f7d\u94fe\u63a5\u548c\u751f\u6210\u4e8c\u7ef4\u7801\u7b49\u6b65\u9aa4\uff0c\u5b9e\u73b0\u4e86app\u7684\u5206\u53d1\u529f\u80fd\u3002<\/p>\n
\u4e00\u95e8APP\u8bc1\u4e66\u5236\u4f5c\u5de5\u5177(https:\/\/platform.yimenapp.com\/)\u63d0\u4f9bAPP\u8bc1\u4e66\u5728\u7ebf\u5236\u4f5c\uff0c\u652f\u6301\u82f9\u679c\u8bc1\u4e66\u3001\u5b89\u5353\u8bc1\u4e66\u5728\u7ebf\u4e00\u952e\u5feb\u6377\u5236\u4f5c\u3002\u5de5\u5177\u5b8c\u5168\u514d\u8d39\uff0c\u6ce8\u518c\u6210\u4e3a\u4e00\u95e8APP\u5f00\u53d1\u8005\u5373\u53ef\u4f7f\u7528\uff0c\u5168\u4e2d\u6587\u5316\u4e91\u7aefAPP\u8bc1\u4e66\u5de5\u5177\u3002
\n\u4e00\u952e\u5236\u4f5cIOS\u82f9\u679c\u8bc1\u4e66\uff0c\u5305\u542bappstore\u4e0a\u67b6\u8bc1\u4e66\u3001\u5f00\u53d1\u73af\u5883\u6d4b\u8bd5\u8bc1\u4e66\u3001ADhoc\u751f\u4ea7\u73af\u5883\u6d4b\u8bd5\u8bc1\u4e66\u3001\u5728\u7ebf\u751f\u6210P12\u5f00\u53d1\u8005\u8bc1\u4e66\u8bc1\u4e66\uff0cP12\u63a8\u9001\u8bc1\u4e66\u3001P8\u63a8\u9001\u8bc1\u4e66\uff0c\u5feb\u6377\u7ed1\u5b9aUDID\u3001\u81ea\u5b9a\u4e49\u5305\u540dBundle ID\u3001\u5728\u7ebf\u83b7\u53d6\u63cf\u8ff0\u6587\u4ef6\uff1b
\n\u4e00\u952e\u5236\u4f5c\u5b89\u5353\u8bc1\u4e66\uff0c\u652f\u6301\u81ea\u5b9a\u4e49\u5b89\u5353\u5305\u540d\u3001\u7b7e\u540d\u6587\u4ef6\u5bc6\u7801(storepass)\u3001\u522b\u540d(alias)\u3001\u522b\u540d\u5bc6\u7801(keypass)\u3001\u516c\u53f8\/\u673a\u6784\u540d\u79f0 (O)\u3001\u90e8\u95e8 (OU)\u3001\u56fd\u5bb6\/\u5730\u533a (C)\u3001\u7701\u4efd (ST)\u3001\u57ce\u5e02 (L)\u3001\u90ae\u7bb1 (E)\u3001\u4ee5\u53ca\u5b89\u5353\u8bc1\u4e66\u6709\u6548\u671f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"
TP\uff08ThinkPHP\uff09\u662f\u4e00\u6b3e\u5f00\u6e90\u7684PHP\u5f00\u53d1\u6846\u67b6\uff0c\u88ab\u5e7f\u6cdb\u5e94\u7528\u4e8eWeb\u5e94\u7528\u7a0b\u5e8f\u7684\u5f00\u53d1\u4e2d\u3002\u5728\u5b9e\u9645\u5f00\u53d1\u8fc7\u7a0b\u4e2d\uff0c\u6211\u4eec\u7ecf\u5e38\u4f1a\u9047\u5230\u9700\u8981\u5c06\u81ea\u5df1\u5f00\u53d1\u7684app\u8fdb\u884c\u5206\u53d1\u7684\u60c5\u51b5\u3002\u672c\u6587\u5c06\u4ece\u539f\u7406\u548c\u8be6\u7ec6\u4ecb\u7ecd\u4e24\u4e2a\u65b9\u9762\u6765\u8bb2\u89e3TP<\/p>\n","protected":false},"author":24,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[2601,2602,19,491,2345],"class_list":{"0":"post-1177","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-appxiazaifenfa","7":"tag-app","9":"tag-19","10":"tag-491","11":"tag-2345"},"_links":{"self":[{"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/posts\/1177","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/users\/24"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/comments?post=1177"}],"version-history":[{"count":0,"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/posts\/1177\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/media?parent=1177"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/categories?post=1177"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/tags?post=1177"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}