{"id":11774,"date":"2023-12-11T16:11:10","date_gmt":"2023-12-11T08:11:10","guid":{"rendered":"https:\/\/www.yimenyun.cn\/emen\/?p=11774"},"modified":"2023-12-11T16:11:10","modified_gmt":"2023-12-11T08:11:10","slug":"%e5%88%86%e5%8f%91%e7%b3%bb%e7%bb%9fapp%e6%ba%90%e7%a0%81%e6%9c%89%e5%95%a5%e4%bd%9c%e7%94%a8","status":"publish","type":"post","link":"https:\/\/www.yimenyun.cn\/emen\/11774\/","title":{"rendered":"\u5206\u53d1\u7cfb\u7edfapp\u6e90\u7801\u6709\u5565\u4f5c\u7528?"},"content":{"rendered":"
\u5206\u53d1\u7cfb\u7edfapp\u6e90\u7801\u662f\u4e00\u79cd\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u5c06\u5e94\u7528\u7a0b\u5e8f\u5206\u53d1\u5230\u7528\u6237\u624b\u4e2d\u7684\u5de5\u5177\u3002\u5b83\u53ef\u4ee5\u8ba9\u5f00\u53d1\u8005\u8f7b\u677e\u5730\u5c06\u5e94\u7528\u7a0b\u5e8f\u4e0a\u4f20\u5230\u4e91\u7aef\uff0c\u7136\u540e\u901a\u8fc7\u6307\u5b9a\u7684\u94fe\u63a5\u6216\u4e8c\u7ef4\u7801\u7b49\u65b9\u5f0f\u5206\u4eab\u7ed9\u7528\u6237\u3002\u5728\u8fd9\u7bc7\u6587\u7ae0\u4e2d\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5206\u53d1\u7cfb\u7edfapp\u6e90\u7801\u7684\u539f\u7406\u548c\u5177\u4f53\u5b9e\u73b0\u3002<\/p>\n
\u4e00\u3001\u5206\u53d1\u7cfb\u7edfapp\u6e90\u7801\u7684\u539f\u7406<\/p>\n
\u5206\u53d1\u7cfb\u7edfapp\u6e90\u7801\u7684\u539f\u7406\u4e3b\u8981\u6d89\u53ca\u5230\u4ee5\u4e0b\u51e0\u4e2a\u65b9\u9762\uff1a<\/p>\n
1. \u4e0a\u4f20\u5e94\u7528\u7a0b\u5e8f<\/p>\n
\u5f00\u53d1\u8005\u9700\u8981\u5c06\u5e94\u7528\u7a0b\u5e8f\u4e0a\u4f20\u5230\u4e91\u7aef\uff0c\u4ee5\u4fbf\u5c06\u5e94\u7528\u7a0b\u5e8f\u5206\u4eab\u7ed9\u7528\u6237\u3002\u4e0a\u4f20\u5e94\u7528\u7a0b\u5e8f\u65f6\uff0c\u9700\u8981\u6ce8\u610f\u4e00\u4e9b\u7ec6\u8282\uff0c\u5982\u5e94\u7528\u7a0b\u5e8f\u7684\u7248\u672c\u53f7\u3001\u5e94\u7528\u7a0b\u5e8f\u7684\u5927\u5c0f\u7b49\u7b49\u3002<\/p>\n
2. \u751f\u6210\u4e0b\u8f7d\u94fe\u63a5\u6216\u4e8c\u7ef4\u7801<\/p>\n
\u4e0a\u4f20\u5e94\u7528\u7a0b\u5e8f\u540e\uff0c\u9700\u8981\u751f\u6210\u4e0b\u8f7d\u94fe\u63a5\u6216\u4e8c\u7ef4\u7801\uff0c\u4ee5\u4fbf\u8ba9\u7528\u6237\u4e0b\u8f7d\u5e94\u7528\u7a0b\u5e8f\u3002\u4e0b\u8f7d\u94fe\u63a5\u6216\u4e8c\u7ef4\u7801\u53ef\u4ee5\u901a\u8fc7\u4e00\u4e9b\u7b2c\u4e09\u65b9\u5de5\u5177\u751f\u6210\uff0c\u4e5f\u53ef\u4ee5\u81ea\u5df1\u7f16\u5199\u4ee3\u7801\u751f\u6210\u3002<\/p>\n
3. \u7ba1\u7406\u5e94\u7528\u7a0b\u5e8f<\/p>\n
\u5206\u53d1\u7cfb\u7edfapp\u6e90\u7801\u9700\u8981\u80fd\u591f\u7ba1\u7406\u5e94\u7528\u7a0b\u5e8f\uff0c\u5305\u62ec\u5e94\u7528\u7a0b\u5e8f\u7684\u7248\u672c\u53f7\u3001\u5e94\u7528\u7a0b\u5e8f\u7684\u5927\u5c0f\u3001\u5e94\u7528\u7a0b\u5e8f\u7684\u4e0b\u8f7d\u6b21\u6570\u7b49\u7b49\u3002\u8fd9\u4e9b\u4fe1\u606f\u53ef\u4ee5\u901a\u8fc7\u6570\u636e\u5e93\u5b58\u50a8\u548c\u7ba1\u7406\u3002<\/p>\n
4. \u7edf\u8ba1\u5e94\u7528\u7a0b\u5e8f\u4e0b\u8f7d\u60c5\u51b5<\/p>\n
\u5206\u53d1\u7cfb\u7edfapp\u6e90\u7801\u9700\u8981\u80fd\u591f\u7edf\u8ba1\u5e94\u7528\u7a0b\u5e8f\u7684\u4e0b\u8f7d\u60c5\u51b5\uff0c\u5305\u62ec\u5e94\u7528\u7a0b\u5e8f\u7684\u4e0b\u8f7d\u6b21\u6570\u3001\u4e0b\u8f7d\u6765\u6e90\u7b49\u7b49\u3002\u8fd9\u4e9b\u4fe1\u606f\u53ef\u4ee5\u901a\u8fc7\u8bbf\u95ee\u65e5\u5fd7\u7b49\u65b9\u5f0f\u8fdb\u884c\u7edf\u8ba1\u3002<\/p>\n
\u4e8c\u3001\u5206\u53d1\u7cfb\u7edfapp\u6e90\u7801\u7684\u5b9e\u73b0<\/p>\n
\u5206\u53d1\u7cfb\u7edfapp\u6e90\u7801\u7684\u5b9e\u73b0\u9700\u8981\u6d89\u53ca\u5230\u4ee5\u4e0b\u51e0\u4e2a\u65b9\u9762\uff1a<\/p>\n
1. \u4e0a\u4f20\u5e94\u7528\u7a0b\u5e8f<\/p>\n
\u5f00\u53d1\u8005\u53ef\u4ee5\u4f7f\u7528\u4e00\u4e9b\u7b2c\u4e09\u65b9\u4e91\u5b58\u50a8\u670d\u52a1\uff0c\u5982\u4e03\u725b\u4e91\u3001\u963f\u91cc\u4e91\u7b49\u7b49\uff0c\u5c06\u5e94\u7528\u7a0b\u5e8f\u4e0a\u4f20\u5230\u4e91\u7aef\u3002\u4e0a\u4f20\u5e94\u7528\u7a0b\u5e8f\u65f6\uff0c\u9700\u8981\u6ce8\u610f\u5e94\u7528\u7a0b\u5e8f\u7684\u7248\u672c\u53f7\u3001\u5e94\u7528\u7a0b\u5e8f\u7684\u5927\u5c0f\u7b49\u7ec6\u8282\u3002<\/p>\n
2. \u751f\u6210\u4e0b\u8f7d\u94fe\u63a5\u6216\u4e8c\u7ef4\u7801<\/p>\n
\u751f\u6210\u4e0b\u8f7d\u94fe\u63a5\u6216\u4e8c\u7ef4\u7801\u53ef\u4ee5\u4f7f\u7528\u4e00\u4e9b\u7b2c\u4e09\u65b9\u5de5\u5177\uff0c\u5982\u817e\u8baf\u4e91\u7684COS\u3001\u4e03\u725b\u4e91\u7684\u5bf9\u8c61\u5b58\u50a8\u7b49\u7b49\u3002\u4e5f\u53ef\u4ee5\u81ea\u5df1\u7f16\u5199\u4ee3\u7801\u751f\u6210\u4e0b\u8f7d\u94fe\u63a5\u6216\u4e8c\u7ef4\u7801\u3002\u5177\u4f53\u5b9e\u73b0\u65b9\u5f0f\u53ef\u4ee5\u53c2\u8003\u4ee5\u4e0b\u4ee3\u7801\uff1a<\/p>\n
“`<\/p>\n
\/\/ \u751f\u6210\u4e0b\u8f7d\u94fe\u63a5<\/p>\n
$domain = ‘http:\/\/www.example.com’;<\/p>\n
$appName = ‘myapp’;<\/p>\n
$version = ‘1.0.0’;<\/p>\n
$url = $domain . ‘\/’ . $appName . ‘\/’ . $version . ‘\/’ . $appName . ‘.apk’;<\/p>\n
\/\/ \u751f\u6210\u4e8c\u7ef4\u7801<\/p>\n
$qrCode = new Endroid\\QrCode\\QrCode($url);<\/p>\n
$qrCode->setSize(300);<\/p>\n
$qrCode->setMargin(10);<\/p>\n
$qrCode->setWriterByName(‘png’);<\/p>\n
$qrCode->setEncoding(‘UTF-8’);<\/p>\n
$qrCode->setErrorCorrectionLevel(ErrorCorrectionLevel::HIGH());<\/p>\n
$qrCode->setForegroundColor([‘r’ => 0, ‘g’ => 0, ‘b’ => 0, ‘a’ => 0]);<\/p>\n
$qrCode->setBackgroundColor([‘r’ => 255, ‘g’ => 255, ‘b’ => 255, ‘a’ => 0]);<\/p>\n
$qrCode->setLabel(‘Download myapp’);<\/p>\n