{"id":12743,"date":"2021-02-03T18:06:01","date_gmt":"2021-02-03T10:06:01","guid":{"rendered":"http:\/\/www.cehuan.com\/?p=12743"},"modified":"2021-02-04T10:37:01","modified_gmt":"2021-02-04T02:37:01","slug":"%e5%a6%82%e4%bd%95%e5%ae%9e%e7%8e%b0%e5%9c%a8%e6%8a%96%e9%9f%b3%e4%b8%ad%e7%9b%b4%e6%8e%a5%e7%82%b9%e5%87%bb%e6%89%93%e5%bc%80%e5%be%ae%e4%bf%a1%e5%b0%8f%e7%a8%8b%e5%ba%8f%ef%bc%9f%e3%80%90%e8%af%a6","status":"publish","type":"post","link":"https:\/\/www.cehuan.com\/12743.html","title":{"rendered":"\u5982\u4f55\u5b9e\u73b0\u5728\u6296\u97f3\u4e2d\u76f4\u63a5\u70b9\u51fb\u6253\u5f00\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\uff1f\u3010\u8be6\u7ec6\u6559\u7a0b\u3011\u5fae\u4fe1\u5916\u90e8\u6253\u5f00\u5c0f\u7a0b\u5e8f\u7684\u4e09\u79cd\u89e3\u51b3\u65b9\u6cd5"},"content":{"rendered":"\n

\u6700\u8fd1\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u5df2\u6084\u6084\u7684\u5f00\u653e\u4e86\u4ece\u5916\u90e8\u8df3\u8f6c\u81f3\u5c0f\u7a0b\u5e8f\u7684\u5165\u53e3\uff0c\u65b9\u4fbf\u7528\u6237\u53ef\u4ee5\u5728\u5fae\u4fe1\u5916\u90e8\u6d4f\u89c8\u5668\u6216\u5176\u4ed6APP\u8df3\u8f6c\u81f3\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u3002<\/p>\n\n\n\n

\n
\u70b9\u51fb\u4f53\u9a8c-\u5916\u90e8\u4e00\u952e\u8df3\u8f6c\u5c0f\u7a0b\u5e8f<\/a><\/div>\n<\/div>\n\n\n\n

\u7ed9\u5927\u5bb6\u629b\u4e00\u4e2a\u7816\uff1a\u5982\u4f55\u5b9e\u73b0\u5728\u6296\u97f3\u4e2d\u76f4\u63a5\u70b9\u51fb\u6253\u5f00\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\uff1f<\/p>\n\n\n\n

\u770b\u5b8c\u6587\u7ae0\u53ef\u80fd\u5c31\u4f1a\u6709\u7b54\u6848\u3002\u8fd8\u4e0d\u4f1a\u7684\u8bdd\uff0c\u6765\u8054\u7cfb\u6211\u3002<\/p>\n\n\n\n

\u65b9\u6cd5\u4e00\uff1a\u901a\u8fc7\u5c0f\u7a0b\u5e8fscheme\u7801\u8df3\u8f6c\u81f3\u5c0f\u7a0b\u5e8f<\/h2>\n\n\n\n

\u4f18\u52bf\uff1a\u76ee\u524d\u6700\u4f18\u65b9\u6848\uff0c\u6240\u6709\u573a\u666f\u90fd\u652f\u6301\u8df3\u8f6c\u81f3\u5c0f\u7a0b\u5e8f\uff0c\u4e3a\u4f60\u5b9e\u73b0\u5916\u90e8\u6d41\u91cf\u5bfc\u5165\u5c0f\u7a0b\u5e8f<\/strong><\/p>\n\n\n\n

\u7f3a\u70b9\uff1a\u9700\u8981\u6ce8\u518c\u5fae\u4fe1\u5f00\u653e\u5e73\u53f0\uff0c\u7533\u8bf7\u7b2c\u4e09\u65b9\u5e73\u53f0\uff0c\u7136\u540e\u5229\u7528\u63a5\u53e3\u83b7\u53d6URL Scheme\uff0c\u6b65\u9aa4\u6bd4\u8f83\u591a<\/strong><\/p>\n\n\n\n

\u901a\u8fc7\u670d\u52a1\u7aef\u63a5\u53e3<\/a>\u53ef\u4ee5\u83b7\u53d6\u6253\u5f00\u5c0f\u7a0b\u5e8f\u4efb\u610f\u9875\u9762\u7684URL Scheme\u3002\u9002\u7528\u4e8e\u4ece\u77ed\u4fe1\u3001\u90ae\u4ef6\u3001\u5fae\u4fe1\u5916\u7f51\u9875\u7b49\u573a\u666f\u6253\u5f00\u5c0f\u7a0b\u5e8f\u3002\u901a\u8fc7URLScheme\u6253\u5f00\u5c0f\u7a0b\u5e8f\u7684\u573a\u666f\u503c\u4e3a 1065\u3002\u751f\u6210\u7684URL Scheme\u5982\u4e0b\u6240\u793a\uff1aweixin:\/\/dl\/business\/?t= *TICKET*iOS\u7cfb\u7edf\u652f\u6301\u8bc6\u522bURL Scheme\uff0c\u53ef\u5728\u77ed\u4fe1\u7b49\u5e94\u7528\u573a\u666f\u4e2d\u76f4\u63a5\u901a\u8fc7Scheme\u8df3\u8f6c\u5c0f\u7a0b\u5e8f\u3002Android\u7cfb\u7edf\u4e0d\u652f\u6301\u76f4\u63a5\u8bc6\u522bURL Scheme\uff0c\u7528\u6237\u65e0\u6cd5\u901a\u8fc7Scheme\u6b63\u5e38\u6253\u5f00\u5c0f\u7a0b\u5e8f\uff0c\u5f00\u53d1\u8005\u9700\u8981\u4f7f\u7528H5\u9875\u9762\u4e2d\u8f6c\uff0c\u518d\u8df3\u8f6c\u5230Scheme\u5b9e\u73b0\u6253\u5f00\u5c0f\u7a0b\u5e8f\uff0c\u8df3\u8f6c\u4ee3\u7801\u793a\u4f8b\u5982\u4e0b\uff1alocation.href = ‘weixin:\/\/dl\/business\/?t= *TICKET*’\u8be5\u8df3\u8f6c\u65b9\u6cd5\u53ef\u4ee5\u5728\u7528\u6237\u6253\u5f00H5\u65f6\u7acb\u5373\u8c03\u7528\uff0c\u4e5f\u53ef\u4ee5\u5728\u7528\u6237\u89e6\u53d1\u4e8b\u4ef6\u540e\u8c03\u7528\u3002\u8c03\u7528\u4e0a\u9650Scheme\u5c06\u6839\u636e\u662f\u5426\u4e3a\u5230\u671f\u6709\u6548\u4e0e\u5931\u6548\u65f6\u95f4\u53c2\u6570\uff0c\u5206\u4e3a\u77ed\u671f\u6709\u6548Scheme\u4e0e\u957f\u671f\u6709\u6548Scheme\uff1a<\/p>\n\n\n\n

  1. \u5355\u4e2a\u5c0f\u7a0b\u5e8f\u6bcf\u65e5\u751f\u6210Scheme\u4e0a\u9650\u4e3a50\u4e07\u4e2a\uff08\u5305\u542b\u77ed\u671f\u6709\u6548Scheme\u4e0e\u957f\u671f\u6709\u6548Scheme\uff09<\/li>
  2. \u6709\u6548\u65f6\u95f4\u8d85\u8fc731\u5929\u7684Scheme\u6216\u6c38\u4e45\u6709\u6548\u7684Scheme\u4e3a\u957f\u671f\u6709\u6548Scheme<\/li>
  3. \u5355\u4e2a\u5c0f\u7a0b\u5e8f\u603b\u5171\u53ef\u751f\u6210\u957f\u671f\u6709\u6548Scheme\u4e0a\u9650\u4e3a10\u4e07\u4e2a\uff0c\u8bf7\u8c28\u614e\u8c03\u7528\u6709\u6548\u65f6\u95f4\u4e0d\u8d85\u8fc731\u5929\u7684Scheme\u4e3a\u77ed\u671f\u6709\u6548Scheme<\/li>
  4. \u5355\u4e2a\u5c0f\u7a0b\u5e8f\u751f\u6210\u77ed\u671f\u6709\u6548Scheme\u4e0d\u8bbe\u4e0a\u9650<\/li><\/ol>\n\n\n\n

    \u6ce8\u610f\u4e8b\u9879<\/p>\n\n\n\n

    1. \u751f\u6210\u7684URL Scheme\u4ec5\u652f\u6301\u4ece\u5fae\u4fe1\u5916\u6253\u5f00\u5c0f\u7a0b\u5e8f\u3002\u5fae\u4fe1\u5185\u7684\u7f51\u9875\u5982\u9700\u6253\u5f00\u5c0f\u7a0b\u5e8f\u8bf7\u4f7f\u7528\u5fae\u4fe1\u5f00\u653e\u6807\u7b7e-\u5c0f\u7a0b\u5e8f\u8df3\u8f6c\u6309\u94ae<\/a>\uff0c\u65e0\u516c\u4f17\u53f7\u4e5f\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528\u5c0f\u7a0b\u5e8f\u8eab\u4efd\u5f00\u53d1\u7f51\u9875\u5e76\u514d\u9274\u6743\u8df3\u8f6c\u5c0f\u7a0b\u5e8f\uff0c\u89c1\u4e91\u5f00\u53d1\u9759\u6001\u7f51\u7ad9\u8df3\u8f6c\u5c0f\u7a0b\u5e8f<\/a>\u3002<\/li>
    2. \u7b26\u5408\u5f00\u653e\u8303\u56f4\u7684\u5c0f\u7a0b\u5e8f\u53ef\u4ee5\u4e0b\u53d1\u652f\u6301\u6253\u5f00\u5c0f\u7a0b\u5e8f\u7684\u77ed\u4fe1<\/a>\u3002\u8be5\u529f\u80fd\u57fa\u672c\u8986\u76d6\u5f53\u524d\u7528\u6237\u6b63\u5728\u4f7f\u7528\u7684\u5fae\u4fe1\u7248\u672c\uff0c\u5f00\u53d1\u8005\u65e0\u9700\u8fdb\u884c\u4f4e\u7248\u672c\u517c\u5bb9\u3002\u53ea\u80fd\u751f\u6210\u5df2\u53d1\u5e03\u7684\u5c0f\u7a0b\u5e8f\u7684URL Scheme\u3002<\/li>
    3. \u901a\u8fc7URL Scheme\u8df3\u8f6c\u5230\u5fae\u4fe1\u65f6\uff0c\u53ef\u80fd\u4f1a\u89e6\u53d1\u7cfb\u7edf\u5f39\u6846\u8be2\u95ee\uff0c\u82e5\u7528\u6237\u9009\u62e9\u4e0d\u8df3\u8f6c\uff0c\u5219\u65e0\u6cd5\u6253\u5f00\u5c0f\u7a0b\u5e8f\u3002\u8bf7\u5f00\u53d1\u8005\u59a5\u5584\u5904\u7406\u7528\u6237\u9009\u62e9\u4e0d\u8df3\u8f6c\u7684\u573a\u666f\u3002<\/li><\/ol>\n\n\n\n

      \u5f00\u653e\u8303\u56f4\u9488\u5bf9\u56fd\u5185\u975e\u4e2a\u4eba\u4e3b\u4f53\u5c0f\u7a0b\u5e8f\u5f00\u653e\u3002VV\u76f4\u9009IOS\u7aef\u5c31\u91c7\u7528\u4e86URL Scheme\u8df3\u8f6c\uff0c\u5927\u5bb6\u53ef\u4e0b\u8f7d\u4f53\u9a8c\u3002\u793a\u4f8b\u4f7f\u7528\u4e86\u4e91\u5f00\u53d1\u9759\u6001\u7f51\u7ad9\u6258\u7ba1\u642d\u5efa\u7f51\u9875\uff0c\u65e0\u9700\u516c\u4f17\u53f7\uff0c\u53ea\u9700\u51c6\u5907\u597d\u5c0f\u7a0b\u5e8f\u548c\u5f00\u901a\u4e91\u5f00\u53d1\u3002\u7f51\u9875\u4f1a\u5224\u65ad\u6240\u5728\u7684\u73af\u5883\u6765\u89c9\u5f97\u91c7\u7528\u54ea\u79cd\u8df3\u8f6c\u65b9\u5f0f\uff0c\u5982\u68c0\u6d4b\u5230\u5fae\u4fe1\u5ba2\u6237\u7aef\u5185\uff0c\u5219\u514d\u9274\u6743\u4f7f\u7528\u5f00\u653e\u6807\u7b7e\u8df3\u8f6c\uff0c\u5982\u68c0\u6d4b\u5230\u5728\u5916\u90e8\u6d4f\u89c8\u5668\u6216 App\uff0c\u5219\u4f7f\u7528 URL Scheme \u8df3\u8f6c\u5c0f\u7a0b\u5e8f\u3002<\/p>\n\n\n\n

      \u793a\u4f8b\u7f51\u9875\u5730\u5740\uff1apostpay-2g5hm2oxbbb721a4-1258211818.tcloudbaseapp.com<\/a>\/jump-mp.html<\/a><\/p>\n\n\n\n

      \u8be6\u7ec6\u4ee3\u7801\u793a\u4f8b\u548c\u8bf4\u660e\uff1a\u4e91\u5f00\u53d1\u9759\u6001\u7f51\u7ad9\u8df3\u8f6c\u5c0f\u7a0b\u5e8f<\/a>\u3002<\/p>\n\n\n\n

      \u65b9\u6cd5\u4e8c\uff1a\u4e91\u5f00\u53d1\u9759\u6001\u7f51\u9875\u514d\u9274\u6743\u8df3\u8f6c\u9759\u6001\u7f51\u7ad9<\/h2>\n\n\n\n

      \u4f18\u52bf\uff1a1\u3001\u514d\u53bb\u5c0f\u7a0b\u5e8f\u4e1a\u52a1\u57df\u540d\u7684\u914d\u7f6e\uff1b2\u3001\u4e91\u5f00\u53d1\u6709\u514d\u8d39\u7684CDN\u989d\u5ea6\uff1b3\u3001\u7b80\u5355\u7c97\u66b4\uff0c\u5f00\u53d1\u8d77\u6765\u7b80\u5355\u3001UI\u7ec4\u4ef6\u5fae\u4fe1\u5b98\u65b9\u81ea\u5e26\uff0c\u4f53\u9a8c\u597d<\/strong><\/p>\n\n\n\n

      \u7f3a\u70b9\uff1a\u4e00\u4e9b\u6392\u65a5\u4e91\u5f00\u53d1\u7684\u53ef\u80fd\u671b\u800c\u5374\u6b65<\/strong><\/p>\n\n\n\n

      H5 \u8df3\u5c0f\u7a0b\u5e8f\u975e\u4e2a\u4eba\u4e3b\u4f53\u5e76\u4e14\u5df2\u8ba4\u8bc1\u7684\u5c0f\u7a0b\u5e8f\uff0c\u4f7f\u7528\u4e91\u5f00\u53d1<\/a>\u9759\u6001\u7f51\u7ad9\u6258\u7ba1\u7684\u7f51\u9875\uff0c\u53ef\u4ee5\u514d\u9274\u6743\u8df3\u8f6c\u4efb\u610f\u5408\u6cd5\u5408\u89c4\u7684\u5c0f\u7a0b\u5e8f\u3002\u5373\u53ef\u4ee5\u5728\u5fae\u4fe1\u5185\u90e8\u6d4f\u89c8\u5668\u7684 H5 \u8df3\u8f6c\u5c0f\u7a0b\u5e8f\uff0c\u4e5f\u53ef\u4ee5\u5728\u5fae\u4fe1\u5916\u90e8\u6d4f\u89c8\u5668\u6216\u5176\u4ed6\u90e8\u5206 App \uff08\u5982\u4f01\u4e1a\u5fae\u4fe1\u3001QQ \u7b49\uff09\u8df3\u8f6c\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u3002\u9759\u6001\u7f51\u7ad9\u7f51\u9875\u5728\u5fae\u4fe1\u5ba2\u6237\u7aef\u6253\u5f00\u65f6\uff0cwx.config \u53ef\u4ee5\u4f20\u5165\u5c0f\u7a0b\u5e8f AppID \u5e76\u4e14\u4e0d\u9700\u8ba1\u7b97\u7b7e\u540d\uff0c\u4e5f\u5c31\u662f\u514d\u9274\u6743\u5373\u53ef\u4f7f\u7528\u8df3\u8f6c\u5c0f\u7a0b\u5e8f\u7684\u80fd\u529b\u3002\u70b9\u6b64\u4f53\u9a8c\uff08\u5c06\u4f1a\u8df3\u8f6c\u5230\u5fae\u4fe1\u5b98\u65b9\u7684 “\u5c0f\u7a0b\u5e8f\u793a\u4f8b” \u5c0f\u7a0b\u5e8f\uff09\uff1ahttps:\/\/<\/a>postpay-2g5hm2oxbbb721a4-1258211818.tcloudbaseapp.com<\/a>\/jump-mp.html<\/a><\/p>\n\n\n\n

      \u6ce8\u610f\uff0c\u5f00\u901a\u9759\u6001\u7f51\u7ad9\u3001\u7ed1\u5b9a\u81ea\u5b9a\u4e49\u57df\u540d\uff0c\u9700\u8981\u5728\u300c\u5fae\u4fe1\u5f00\u53d1\u8005\u5de5\u5177 – \u4e91\u5f00\u53d1 – \u66f4\u591a – \u9759\u6001\u7f51\u7ad9\u300d\u91cc\u8fdb\u884c\uff0c\u624d\u80fd\u62e5\u6709\u514d\u9274\u6743\u7684\u80fd\u529b\u3002\u4ee5\u4e0b\u5305\u542b\u5b8c\u6574\u4ee3\u7801\u793a\u4f8b\uff0c\u5305\u62ec HTML \u4ee3\u7801\u548c\u4e91\u51fd\u6570\u4ee3\u7801\u3002\u793a\u4f8b\u65e0\u9700\u51c6\u5907\u516c\u4f17\u53f7\uff0c\u53ea\u9700\u51c6\u5907\u597d\u5c0f\u7a0b\u5e8f\u548c\u5f00\u901a\u4e91\u5f00\u53d1\u4ee5\u53ca\u4e91\u5f00\u53d1\u4e2d\u7684\u9759\u6001\u7f51\u7ad9\u6258\u7ba1\u80fd\u529b\u3002\u7f51\u9875\u4f1a\u5224\u65ad\u6240\u5728\u7684\u73af\u5883\u6765\u89c9\u5f97\u91c7\u7528\u54ea\u79cd\u8df3\u8f6c\u65b9\u5f0f\uff0c\u5982\u68c0\u6d4b\u5230\u5fae\u4fe1\u5ba2\u6237\u7aef\u5185\uff0c\u5219\u514d\u9274\u6743\u4f7f\u7528\u5f00\u653e\u6807\u7b7e\u8df3\u8f6c\uff0c\u5982\u68c0\u6d4b\u5230\u5728\u5916\u90e8\u6d4f\u89c8\u5668\u6216 App\uff0c\u5219\u4f7f\u7528 URL Scheme \u8df3\u8f6c\u5c0f\u7a0b\u5e8f\u3002\u6ce8\u610f\uff0c\u4ee5\u4e0b\u4ee3\u7801\u4e2d\u6709\u4ee5\u4e0b\u5185\u5bb9\u5fc5\u987b\u66ff\u6362\uff0c\u53ef\u4ee5\u641c\u7d22 <!– replace –> \u67e5\u770b\u5230\u6240\u6709\u9700\u8981\u66ff\u6362\u7684\u5730\u65b9\uff1a<\/p>\n\n\n\n

      \u5c0f\u7a0b\u5e8f AppID\uff1a\u586b\u5165\u4f60\u7684\u5c0f\u7a0b\u5e8f AppID<\/p>\n\n\n\n

      \u4e91\u5f00\u53d1\u73af\u5883 ID\uff1a\u586b\u5165\u4f60\u7684\u5f00\u901a\u4e86\u9759\u6001\u7f51\u7ad9\u6258\u7ba1\u7684\u4e91\u5f00\u53d1\u73af\u5883 ID<\/p>\n\n\n\n

      \u5c0f\u7a0b\u5e8f\u539f\u59cb\u8d26\u53f7 ID\uff1a\u586b\u5165\u4f60\u7684\u5c0f\u7a0b\u5e8f\u539f\u59cb\u8d26\u53f7 ID\uff08gh_ \u5f00\u5934\uff09<\/p>\n\n\n\n

      \u5c0f\u7a0b\u5e8f\u9875\u9762\u8def\u5f84\uff1a\u586b\u5165\u8981\u8df3\u8f6c\u5230\u7684\u5c0f\u7a0b\u5e8f\u7684\u9875\u9762\u8def\u5f84<\/p>\n\n\n\n

      \u5c0f\u7a0b\u5e8f\u540d\u79f0\uff1a\u586b\u5165\u8981\u8df3\u8f6c\u5230\u7684\u5c0f\u7a0b\u5e8f\u540d\u79f0<\/p>\n\n\n\n

      HTML: \u70b9\u51fb\u4e0b\u8f7d<\/a><\/p>\n\n\n\n