{"id":1036,"date":"2017-01-03T14:22:03","date_gmt":"2017-01-03T06:22:03","guid":{"rendered":"http:\/\/www.xttblog.com\/?p=1036"},"modified":"2017-01-03T14:22:03","modified_gmt":"2017-01-03T06:22:03","slug":"%e6%94%af%e4%bb%98%e5%ae%9d%e8%8a%9d%e9%ba%bb%e4%bf%a1%e7%94%a8%e5%95%86%e5%ae%b6%e6%8e%a5%e5%85%a5%e6%95%99%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/www.xttblog.com\/?p=1036","title":{"rendered":"\u652f\u4ed8\u5b9d\u829d\u9ebb\u4fe1\u7528\u5546\u5bb6\u63a5\u5165\u6559\u7a0b"},"content":{"rendered":"<p>\n\t\u603b\u7ed3\u4e00\u4e0b\uff0c\u5e38\u7528\u7684\u7b2c\u4e09\u65b9\u5f00\u653eAPI\uff0c\u4e00\u822c\u90fd\u6709\u4e00\u4e0b\u51e0\u4e2a\u8981\u7d20\uff1a\u5e94\u7528ID\uff0c\u5e94\u7528\u516c\u94a5\uff0c\u5e94\u7528\u79c1\u94a5\uff0c\u8bf7\u6c42\u516c\u5171URL\uff0c\u8bf7\u6c42\u63a5\u53e3\u65b9\u6cd5\u540d\u3002<br \/>\n\t\u5bf9\u4e8e\u829d\u9ebb\u4fe1\u7528\u7684\u8bdd\uff0c\u8fd9\u4e9b\u90fd\u662f\u5fc5\u987b\u7684\uff0c\u90a3\u4e48\u829d\u9ebb\u5bf9\u4e8eAPI\u63a5\u53e3\u7684\u5b9a\u4e49\uff0c\u5b98\u65b9\u7684\u89e3\u91ca\u5982\u4e0b\uff1a\n<\/p>\n<blockquote>\n<p>\n\t\t\u76ee\u524d\u829d\u9ebb\u4fe1\u7528\u5f00\u653e\u5e73\u53f0\u652f\u6301\u4e24\u79cd\u7c7b\u578b\u7684\u63a5\u53e3\uff0c\u4e00\u79cd\u662f\u7cfb\u7edf\u8c03\u7528\u7c7b\u63a5\u53e3\uff0c\u4e3b\u8981\u662f\u5546\u6237\u540e\u7aef\u76f4\u63a5\u901a\u8fc7HTTP\u7684\u65b9\u5f0f\u8fdb\u884c\u63a5\u53e3\u8c03\u7528\uff0c\u5e76\u540c\u6b65\u8fd4\u56de\u7ed3\u679c\u7ed9\u5546\u6237\u3002\u53e6\u5916\u4e00\u79cd\u662f\u9875\u9762\u8df3\u8f6c\u7c7b\u63a5\u53e3\uff0c\u8fd9\u79cd\u63a5\u53e3\u7684\u7528\u6cd5\u662f\u5546\u6237\u5728\u6d4f\u89c8\u5668\u4e2d\u8f93\u5165\u829d\u9ebb\u4fe1\u7528\u5f00\u653e\u5e73\u53f0\u7684URL\u5e76\u7ec4\u7ec7\u597d\u5bf9\u5e94\u7684\u53c2\u6570\uff0c\u4ee5HTTP GET\u7684\u65b9\u5f0f\u8fdb\u884c\u8c03\u7528\uff0c\u7528\u6237\u9875\u9762\u6388\u6743\u63a5\u53e3(zhima.auth.info.authorize)\u5c31\u662f\u5c5e\u4e8e\u9875\u9762\u8df3\u8f6c\u7c7b\u63a5\u53e3\uff0c\u7528\u6237\u5728\u9875\u9762\u4e0a\u5b8c\u6210\u76f8\u5e94\u7684\u64cd\u4f5c\u540e\uff0c\u6d4f\u89c8\u5668\u6700\u540e\u8df3\u8f6c\u5230\u5546\u6237\u63d0\u4f9b\u7684callback URL\uff0c\u5e76\u5e26\u4e0a\u4e1a\u52a1\u7684\u8fd4\u56de\u7ed3\u679c\u5728callback\u9875\u9762\u7684URL\u4e2d\uff0c\u4ece\u800c\u5546\u6237\u53ef\u4ee5\u5728\u540e\u53f0\u4ececallback URL\u7684\u8bf7\u6c42\u4e2d\u628a\u4e1a\u52a1\u8fd4\u56de\u7ed3\u679c\u62ff\u5230\u3002\n\t<\/p>\n<p>\n\t\t\u6bcf\u4e2a\u901a\u8fc7<a href=\"https:\/\/b.zmxy.com.cn\/technology\/technicalProds.htm\" target=\"_blank\">\u829d\u9ebb\u4fe1\u7528\u5f00\u653e\u5e73\u53f0<\/a>\u8f93\u51fa\u7684\u829d\u9ebb\u4fe1\u7528\u4ea7\u54c1\uff0c\u90fd\u4f1a\u5bf9\u5e94\u4e8e\u4e00\u4e2a\u6ce8\u518c\u5728\u5f00\u653e\u5e73\u53f0\u4e2d\u7684\u63a5\u53e3\uff08API\uff09,\u8fd9\u4e9b\u63a5\u53e3\u4e2d\u4f1a\u5b9a\u4e49\u4e1a\u52a1\u53c2\u6570\u7684\u5217\u8868\uff0c\u7cfb\u7edf\u53c2\u6570\u5217\u8868\uff0c\u8fd4\u56de\u503c\u5b57\u6bb5\u5217\u8868\uff0c\u4ee5\u53ca\u9519\u8bef\u7801\u5217\u8868\u3002\u6bcf\u4e2a\u63a5\u53e3\u4f1a\u6709\u4e00\u4e2a\u5bf9\u5e94\u7684\u63a5\u53e3\u6587\u6863\uff0c\u91cc\u9762\u4f1a\u5bf9\u7cfb\u7edf\u53c2\u6570\u3001\u4e1a\u52a1\u53c2\u6570\u3001\u8fd4\u56de\u503c\u548c\u9519\u8bef\u7801\u90fd\u6709\u8be6\u7ec6\u7684\u63cf\u8ff0\u3002\n\t<\/p>\n<\/blockquote>\n<p>\n\t\u9996\u5148\u6211\u4eec\u8981\u660e\u767d\u829d\u9ebb\u4fe1\u7528\u662f\u600e\u4e48\u8ddf\u6211\u4eec\u8fdb\u884c\u4ea4\u4e92\u7684\uff0c\u90a3\u65e2\u7136\u7275\u626f\u5230\u63a5\u53e3\u7684\u4ea4\u4e92\uff0c\u90a3\u4e48\u80af\u5b9a\u6211\u4eec\u60f3\u5230\uff0c\u9700\u8981\u4e00\u4e2a\u5730\u5740\u53bb\u8fdb\u884c\u4ea4\u4e92\uff0c\u90a3\u4e48\u8fd9\u4e2a\u5730\u5740\u53c8\u662f\u4ec0\u4e48\u5462\uff1f\u8fd9\u4e2a\u5730\u5740\u5c31\u662f\uff1a<a href=\"https:\/\/zmopenapi.zmxy.com.cn\/openapi.do\" target=\"_blank\">https:\/\/zmopenapi.zmxy.com.cn\/openapi.do<\/a> \uff0c &nbsp;\u6211\u4eec\u53ef\u4ee5\u628a\u5b83\u770b\u6210\u662f\u4e00\u4e2a\u5165\u53e3\uff0c\u6240\u6709\u548c\u829d\u9ebb\u8fdb\u884c\u4ea4\u4e92\u7684\u4e00\u4e2a\u5165\u53e3\uff0c\u5728\u5165\u53e3\u7684\u5730\u65b9\u6709\u5f88\u591a\u7684\u8b66\u536b\u5458\uff0c\u6211\u4eec\u9700\u8981\u51fa\u793a\u5de5\u724c\uff08\u51ed\u8bc1\uff09\u624d\u80fd\u8fdb\u5165\u529e\u516c\uff08\u6267\u884c\u65b9\u6cd5\uff09\uff0c\u5982\u679c\u6211\u4eec\u7684\u51ed\u8bc1\uff08\u6bd4\u5982APPID,\u79c1\u94a5\uff09\u7b49\u9519\u8bef\u7684\u8bdd\uff0c\u90a3\u4e48\u6211\u4eec\u5c31\u4e0d\u88ab\u62e5\u6709\u51c6\u5165\u6743\u9650\u3002\u4e0b\u9762\u4e00\u5f20\u8868\u683c\u66f4\u52a0\u8be6\u7ec6\u7684\u4ecb\u7ecd\u4e86\u829d\u9ebb\u7684\u4e00\u4e9b\u51c6\u5165\u51ed\u8bc1\u7b49\u3002\n<\/p>\n<table border=\"1\">\n<tbody>\n<tr>\n<td width=\"20%\">\n<p>\n\t\t\t\t\t&nbsp;\n\t\t\t\t<\/p>\n<p>\n\t\t\t\t\t\u53c2\u6570\u540d\n\t\t\t\t<\/p>\n<\/td>\n<td width=\"10%\">\n<p>\n\t\t\t\t\t\u7c7b\u578b\n\t\t\t\t<\/p>\n<\/td>\n<td width=\"10%\">\n<p>\n\t\t\t\t\t\u662f\u5426\u5fc5\u987b\n\t\t\t\t<\/p>\n<\/td>\n<td width=\"10%\">\n<p>\n\t\t\t\t\t\u662f\u5426\u829d\u9ebb\u5206\u914d\n\t\t\t\t<\/p>\n<\/td>\n<td width=\"10%\">\n<p>\n\t\t\t\t\t\u793a\u4f8b\u503c\n\t\t\t\t<\/p>\n<\/td>\n<td width=\"40%\">\n<p>\n\t\t\t\t\t\u5907\u6ce8\n\t\t\t\t<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\n\t\t\t\t\tapp_id\n\t\t\t\t<\/p>\n<\/td>\n<td>\n<p>\n\t\t\t\t\tString\n\t\t\t\t<\/p>\n<\/td>\n<td>\n<p>\n\t\t\t\t\t\u662f\n\t\t\t\t<\/p>\n<\/td>\n<td>\n<p>\n\t\t\t\t\t\u662f\n\t\t\t\t<\/p>\n<\/td>\n<td>\n<p>\n\t\t\t\t\t1000033\n\t\t\t\t<\/p>\n<\/td>\n<td>\n<p>\n\t\t\t\t\t\u5546\u6237\u5e94\u7528ID\n\t\t\t\t<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\n\t\t\t\t\tcharset\n\t\t\t\t<\/p>\n<\/td>\n<td>\n<p>\n\t\t\t\t\tString\n\t\t\t\t<\/p>\n<\/td>\n<td>\n<p>\n\t\t\t\t\t\u662f\n\t\t\t\t<\/p>\n<\/td>\n<td>\n<p>\n\t\t\t\t\t\u5426\n\t\t\t\t<\/p>\n<\/td>\n<td>\n<p>\n\t\t\t\t\tUTF-8\n\t\t\t\t<\/p>\n<\/td>\n<td>\n<p>\n\t\t\t\t\t\u52a0\u5bc6\u52a0\u7b7e\u65f6\u4f7f\u7528\u7684charset\n\t\t\t\t<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\n\t\t\t\t\tmethod\n\t\t\t\t<\/p>\n<\/td>\n<td>\n<p>\n\t\t\t\t\tString\n\t\t\t\t<\/p>\n<\/td>\n<td>\n<p>\n\t\t\t\t\t\u662f\n\t\t\t\t<\/p>\n<\/td>\n<td>\n<p>\n\t\t\t\t\t\u662f\n\t\t\t\t<\/p>\n<\/td>\n<td>\n<p>\n\t\t\t\t\tzhima.auth.info.authorize\n\t\t\t\t<\/p>\n<\/td>\n<td>\n<p>\n\t\t\t\t\t\u8981\u8c03\u7528\u7684\u63a5\u53e3\u540d\n\t\t\t\t<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\n\t\t\t\t\tversion\n\t\t\t\t<\/p>\n<\/td>\n<td>\n<p>\n\t\t\t\t\tString\n\t\t\t\t<\/p>\n<\/td>\n<td>\n<p>\n\t\t\t\t\t\u662f\n\t\t\t\t<\/p>\n<\/td>\n<td>\n<p>\n\t\t\t\t\t\u662f\n\t\t\t\t<\/p>\n<\/td>\n<td>\n<p>\n\t\t\t\t\t1.0\n\t\t\t\t<\/p>\n<\/td>\n<td>\n<p>\n\t\t\t\t\t\u63a5\u53e3\u7248\u672c\uff0c\u76ee\u524d\u53ea\u652f\u63011.0\n\t\t\t\t<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\n\t\t\t\t\tplatform\n\t\t\t\t<\/p>\n<\/td>\n<td>\n<p>\n\t\t\t\t\tString\n\t\t\t\t<\/p>\n<\/td>\n<td>\n<p>\n\t\t\t\t\t\u5426\n\t\t\t\t<\/p>\n<\/td>\n<td>\n<p>\n\t\t\t\t\t\u662f\n\t\t\t\t<\/p>\n<\/td>\n<td>\n<p>\n\t\t\t\t\tzmop\n\t\t\t\t<\/p>\n<\/td>\n<td>\n<p>\n\t\t\t\t\t\u6765\u6e90\u5e73\u53f0\uff0c\u9ed8\u8ba4\u4e3azmop\n\t\t\t\t<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\n\t\t\t\t\tparams\n\t\t\t\t<\/p>\n<\/td>\n<td>\n<p>\n\t\t\t\t\tString\n\t\t\t\t<\/p>\n<\/td>\n<td>\n<p>\n\t\t\t\t\t\u662f\n\t\t\t\t<\/p>\n<\/td>\n<td>\n<p>\n\t\t\t\t\t\u5426\n\t\t\t\t<\/p>\n<\/td>\n<td>\n<p>\n\t\t\t\t\tabc\n\t\t\t\t<\/p>\n<\/td>\n<td>\n<p>\n\t\t\t\t\tRSA\u52a0\u5bc6\u540e\u7684\u4e1a\u52a1\u53c2\u6570\n\t\t\t\t<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\n\t\t\t\t\tsign\n\t\t\t\t<\/p>\n<\/td>\n<td>\n<p>\n\t\t\t\t\tString\n\t\t\t\t<\/p>\n<\/td>\n<td>\n<p>\n\t\t\t\t\t\u662f\n\t\t\t\t<\/p>\n<\/td>\n<td>\n<p>\n\t\t\t\t\t\u5426\n\t\t\t\t<\/p>\n<\/td>\n<td>\n<p>\n\t\t\t\t\tbcd\n\t\t\t\t<\/p>\n<\/td>\n<td>\n<p>\n\t\t\t\t\t\u5bf9params\u53c2\u6570\u52a0\u5bc6\u524d\u7684\u7b7e\u540d,\u7b97\u6cd5\u4e3aSHA1WithRSA\n\t\t\t\t<\/p>\n<p>\n\t\t\t\t\t&nbsp;\n\t\t\t\t<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\n\t\u5bf9\u4e8e\u4e0a\u9762\u7684\u8868\u683c\uff0c\u4ecb\u7ecd\u4e00\u4e0b\u51e0\u4e2a\u8be6\u7ec6\u70b9\uff1a\n<\/p>\n<ol>\n<li>\n\t\tAPPID\u5373\u5e94\u7528ID\uff0c\u8fd9\u4e2a\u662f\u829d\u9ebb\u7ed9\u6211\u4eec\u7684\u5e94\u7528\u5355\u72ec\u5206\u914d\u7684APPID\uff0c\u5b83\u5176\u5b9e\u662f\u548cSign\u7ed3\u5408\u8d77\u6765\u4f7f\u7528\u7684\uff0c\u8fd9\u8bf4\u5f97\u6709\u70b9\u8ff7\u7cca\uff0c\u56e0\u4e3a\u4ece\u4e0a\u56fe\u6765\u8bf4\uff0cSign\u662f\u5ba2\u6237\u7aef\u751f\u6210\u7684\uff0c\u6240\u4ee5\u6211\u4eec\u9996\u5148\u9700\u8981\u4e86\u89e3\u4e00\u4e0bSign(\u7b7e\u540d)\u7684\u751f\u6210\u673a\u5236\uff0c\u5176\u5b9e\u4e5f\u5c31\u662f\u8bf4\uff0c\u4e00\u4e2aAPPID\uff0c\u4e00\u6b21\u8bf7\u6c42\uff0c\u4f1a\u6709\u4e00\u4e2a\u72ec\u4e00\u65e0\u4e8c\u7684\u7b7e\u540d\u5bf9\u5e94\u8d77\u6765\uff0c\u7b7e\u540d\u5c31\u597d\u50cf\u6211\u5f00\u59cb\u8bf4\u7684\u51c6\u5165\u51ed\u8bc1\uff0c\u5176\u5b9e\u66f4\u5f62\u8c61\u7684\u6bd4\u55bb\u5c31\u662f\u4e00\u628a\u94a5\u5319\u3002\n\t<\/li>\n<li>\n\t\tmethod\u540e\u9762\u4f1a\u63d0\u5230\u66f4\u591a\uff0c\u5176\u5b9e\u5f53\u4f60\u8fdb\u5165&ldquo;\u529e\u516c\u573a\u6240&rdquo;\u4ee5\u540e\uff0c\u4f60\u4f1a\u53d1\u73b0\u5176\u5b9e\u4e0d\u6b62\u4e00\u4e2a\u90e8\u95e8\uff0c\u5982\u679c\u4f60\u60f3\u548c\u67d0\u4e00\u4e2a\u90e8\u95e8\u7684\u4eba\u4ea4\u6d41\u6216\u8005\u8fdb\u5165\u67d0\u4e2a\u90e8\u95e8\uff08\u5f53\u7136\u73b0\u5b9e\u4e2d\u4e0d\u5b58\u5728\u6216\u8005\u5f88\u5c11\u6709\u8fd9\u79cd\u60c5\u51b5\uff09\uff0c\u4f60\u5c31\u9700\u8981\u4e00\u4e2amethod(\u65b9\u6cd5)\uff0c\u5f53\u7136\u66f4\u786e\u5207\u7684\u6bd4\u55bb\u5c31\u662f\uff0c\u5982\u679c\u4f60\u7684\u9762\u524d\u6709\u5f88\u591a\u7684\u4fdd\u9669\u67dc\uff0c\u4e0d\u540c\u90e8\u95e8\u7684\u4fdd\u9669\u67dc\u9700\u8981\u4f60\u8f93\u5165\u4e0d\u540c\u7684\u5bc6\u7801\uff0c\u800c\u5728\u8f93\u5165\u5bc6\u7801\u4ee5\u524d\u4f60\u4f1a\u9009\u62e9\u662f\u8981\u5bf9\u54ea\u4e2a\u4fdd\u9669\u67dc\u8fdb\u884c\u64cd\u4f5c\uff0c\u8fd9\u4e2a\u65f6\u5019&ldquo;\u65b9\u6cd5&rdquo;\u5c31\u662f\u4e00\u4e2a\u4e0d\u53ef\u66ff\u4ee3\u7684\u524d\u7f6e\u6761\u4ef6\u4e86\u3002\n\t<\/li>\n<li>\n\t\tparams,\u7b80\u5355\u7406\u89e3\uff0c\u5c31\u662f\u4f60\u7684Action\u5bf9\u5e94\u7684 get\u8bf7\u6c42\u7684\u53c2\u6570\u3002\n\t<\/li>\n<\/ol>\n<p>\n\t\u5176\u5b9e\u4e3b\u8981\u662f\u4ecb\u7ecd\u4e86Sign\u7684\u5f62\u6210\u7684\u65b9\u6cd5\uff0c\u4ed6\u4eec\u7ecf\u5386\u4e86\u5982\u4e0b\u8fc7\u7a0b\uff0c\u4e0b\u9762\u662f\u5b98\u65b9\u7684\u89e3\u91ca\uff0c\u7b80\u5355\u70b9\u6982\u62ec\uff0c\u5c31\u662f\u5ba2\u6237\u7aef\u52a0\u5bc6\uff0c\u7136\u540e\u4f20\u5230\u670d\u52a1\u7aef\uff0c\u7136\u540e\u670d\u52a1\u7aef\u89e3\u5bc6\uff0c\u7ed9\u51fa\u6b63\u786e\u7684\u6570\u636e\uff0c\u7136\u540e\u518d\u52a0\u5bc6\u8fd4\u56de\u7ed9\u5ba2\u6237\u7aef\uff0c\u5ba2\u6237\u7aef\u518d\u8fdb\u884c\u89e3\u5bc6\u540e\u62ff\u5230\u6b63\u786e\u7684\u6570\u636e\uff0c\u5177\u4f53\u7684\u8fc7\u7a0b\u53ef\u4ee5\u53c2\u8003\u6587\u6863\u3002\n<\/p>\n<h2>\n\t\u5546\u6237\u7aef\u53d1\u8d77\u8bf7\u6c42\u5230\u829d\u9ebb\u4fe1\u7528\u65f6<br \/>\n<\/h2>\n<p>\n\t&nbsp; \u5546\u6237\u4f7f\u7528\u829d\u9ebb\u4fe1\u7528\u7684RSA\u516c\u94a5\u5bf9\u4e1a\u52a1\u53c2\u6570\u8fdb\u884cRSA\u52a0\u5bc6\uff0c\u4f7f\u7528\u5546\u6237\u81ea\u5df1\u7684RSA\u79c1\u94a5\u5bf9\u4e1a\u52a1\u53c2\u6570\u8fdb\u884c\u7b7e\u540d\uff1b<br \/>\n\t&nbsp; \u829d\u9ebb\u4fe1\u7528\u4f7f\u7528\u829d\u9ebb\u4fe1\u7528\u7684RSA\u79c1\u94a5\u8fdb\u884c\u4e1a\u52a1\u53c2\u6570\u7684\u89e3\u5bc6\uff0c\u4f7f\u7528\u5546\u6237\u7684RSA\u516c\u94a5\u8fdb\u884c\u9a8c\u7b7e\u3002\n<\/p>\n<h2>\n\t\u829d\u9ebb\u4fe1\u7528\u8fd4\u56de\u8c03\u7528\u7ed3\u679c\u7ed9\u5546\u6237\u65f6<br \/>\n<\/h2>\n<p>\n\t&nbsp; \u829d\u9ebb\u4fe1\u7528\u4f7f\u7528\u5546\u6237\u7684RSA\u516c\u94a5\u5bf9\u4e1a\u52a1\u8fd4\u56de\u7ed3\u679c\u8fdb\u884cRSA\u52a0\u5bc6\uff0c\u4f7f\u7528\u829d\u9ebb\u4fe1\u7528\u81ea\u5df1\u7684RSA\u79c1\u94a5\u5bf9\u4e1a\u52a1\u8fd4\u56de\u7ed3\u679c\u8fdb\u884c\u7b7e\u540d\uff1b<br \/>\n\t&nbsp; \u5546\u6237\u4f7f\u7528\u5546\u6237\u81ea\u5df1\u7684RSA\u79c1\u94a5\u5bf9\u4e1a\u52a1\u8fd4\u56de\u7ed3\u679c\u8fdb\u884c\u89e3\u5bc6\uff0c\u4f7f\u7528\u829d\u9ebb\u7684RSA\u516c\u94a5\u5bf9\u4e1a\u52a1\u8fd4\u56de\u7ed3\u679c\u8fdb\u884c\u9a8c\u7b7e\n<\/p>\n<p>\n\t\u8fd9\u91cc\u9700\u8981\u6ce8\u610f3\u4e2a\u53c2\u6570\uff1a\n<\/p>\n<table align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\n<tbody>\n<tr>\n<td>\n\t\t\t\t\u5e8f\u53f7\n\t\t\t<\/td>\n<td>\n\t\t\t\t\u53c2\u6570\u540d\u79f0\n\t\t\t<\/td>\n<td>\n\t\t\t\t\u7528\u9014\n\t\t\t<\/td>\n<td>\n\t\t\t\t\u793a\u4f8b\n\t\t\t<\/td>\n<\/tr>\n<tr>\n<td>\n\t\t\t\t1\n\t\t\t<\/td>\n<td>\n\t\t\t\topen_id\n\t\t\t<\/td>\n<td>\n\t\t\t\t\u829d\u9ebb\u7528\u6237\u5728\u5546\u6237\u7aef\u7684\u8eab\u4efd\u6807\u8bc6\uff0c\u5546\u6237\u7ef4\u5ea6\u552f\u4e00\u4e14\u7ec8\u751f\u4fdd\u6301\u4e0d\u53d8\uff1b<br \/>\n\t\t\t\t\u829d\u9ebb\u7528\u6237\u5728\u5546\u6237\u7aef\u5b8c\u6210\u6388\u6743\u540e\u751f\u6210\u3002\n\t\t\t<\/td>\n<td>\n\t\t\t\t268808719417710052884472095\n\t\t\t<\/td>\n<\/tr>\n<tr>\n<td>\n\t\t\t\t2\n\t\t\t<\/td>\n<td>\n\t\t\t\tproduct_code\n\t\t\t<\/td>\n<td>\n\t\t\t\t\u4ea7\u54c1\u7801\uff0c\u6807\u8bb0\u5546\u6237\u63a5\u5165\u7684\u5177\u4f53\u4ea7\u54c1\uff1b<br \/>\n\t\t\t\t\u76f4\u63a5\u4f7f\u7528\u6bcf\u4e2a\u63a5\u53e3\u5165\u53c2\u4e2d\u793a\u4f8b\u503c\u5373\u53ef\u3002\n\t\t\t<\/td>\n<td>\n\t\t\t\tw1010100100000000001\n\t\t\t<\/td>\n<\/tr>\n<tr>\n<td>\n\t\t\t\t3\n\t\t\t<\/td>\n<td>\n\t\t\t\ttransaction_id\n\t\t\t<\/td>\n<td>\n\t\t\t\t\u5546\u6237\u8bf7\u6c42\u7684\u552f\u4e00\u6807\u5fd7\uff0c\u957f\u5ea664\u4f4d\u4ee5\u5185\u5b57\u7b26\u4e32\uff0c\u4ec5\u9650\u5b57\u6bcd\u6570\u5b57\u4e0b\u5212\u7ebf\u7ec4\u5408\u3002<br \/>\n\t\t\t\t\u8be5\u6807\u8bc6\u4f5c\u4e3a\u4e1a\u52a1\u8c03\u7528\u7684\u552f\u4e00\u6807\u8bc6\uff0c\u5546\u6237\u8981\u4fdd\u8bc1\u5176\u4e1a\u52a1\u552f\u4e00\u6027\uff0c\u4f7f\u7528\u76f8\u540ctransaction_id\u7684\u67e5\u8be2\uff0c\u829d\u9ebb\u5728\u4e00\u6bb5\u65f6\u95f4\u5185\uff08\u4e00\u822c\u4e3a1\u5929\uff09\u8fd4\u56de\u9996\u6b21\u67e5\u8be2\u7ed3\u679c\uff0c\u8d85\u8fc7\u6709\u6548\u671f\u7684\u67e5\u8be2\u5373\u4e3a\u65e0\u6548\u5e76\u8fd4\u56de\u5f02\u5e38\uff0c\u6709\u6548\u671f\u5185\u7684\u91cd\u590d\u67e5\u8be2\u4e0d\u91cd\u65b0\u8ba1\u8d39\u3002\n\t\t\t<\/td>\n<td>\n\t\t\t\t20151127233347987676212309253\uff0c\u6216\u76f4\u63a5\u91c7\u7528UUID\n\t\t\t<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\n\t\u5c24\u5176\u662ftransaction_id\uff0c\u4e3a\u4ec0\u4e48\u8bf4Transation_id\u975e\u5e38\u7684\u91cd\u8981\u5462,\u6211\u4eec\u77e5\u9053\uff0c\u829d\u9ebb\u4e0d\u662f\u6148\u5584\u673a\u6784\uff0c\u4f60\u6bcf\u8c03\u7528\u5b83\u4e00\u6b21\uff0c\u80af\u5b9a\u662f\u8981\u6536\u53d6\u8d39\u7528\u7684\uff0c\u800c\u8fd9\u4e2aTransaction_id\u5176\u5b9e\u662f\u5f53\u5929\u6709\u6548\u7684\uff0c\u6240\u4ee5\u6211\u4eec\u53ef\u4ee5\u5728\u7f13\u5b58\u4e2d\u4fdd\u5b58\u8fd9\u4e2aid,\u5982\u679c\u4e00\u5929\u5185\u6709\u591a\u6b21\u8c03\u7528\uff0c\u90a3\u4e48\u7528\u8fd9\u4e00\u4e2a\u5c31\u591f\u4e86\uff0c\u5426\u5219\u4f1a\u9020\u6210\u591a\u4f59\u7684RMB\u6d6a\u8d39\u3002<br \/>\n\t\u4e0b\u9762\u6211\u4f1a\u8bb2\u52302\u4e2a\u63a5\u53e3\uff0c\u4e00\u4e2a\u662f\u83b7\u5f97\u6388\u6743(openid)\uff0c\u53e6\u5916\u4e00\u4e2a\u662f\u829d\u9ebb\u4fe1\u7528\u5206\u7684\u3002\u6216\u8005\u6388\u6743(openid)\u7684\u63a5\u53e3\u8bf7\u770b\u8fd9\u91cc\u3002\u5173\u4e8e\u8be6\u7ec6\u7684\u4ecb\u7ecd\u6587\u6863\u91cc\u9762\u90fd\u5df2\u7ecf\u8bf4\u5f97\u975e\u5e38\u6e05\u695a\u4e86\uff0c\u6211\u4f7f\u7528\u7684\u662f\u59d3\u540d+\u8eab\u4efd\u8bc1\u7684\u65b9\u5f0f\u8fdb\u884c\u8ba4\u8bc1\uff0c\u65b9\u5f0f\u662fH5\uff0c\u5177\u4f53\u7684\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff0c\u53c2\u6570\u8bf7\u6839\u636e\u81ea\u5df1\u7684\u60c5\u51b5\u81ea\u884c\u8c03\u6574\uff0c\u670d\u52a1\u7aefSDK\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u7684\u8bed\u8a00\u9009\u62e9\u5408\u9002\u7684\u3002\n<\/p>\n<p>\n\t\u4ee5\u4e0b\u4e3a\u76f8\u5173java\u5b9e\u73b0\u4ee3\u7801\uff1a\n<\/p>\n<pre class=\"brush:java;\">\r\nimport com.antgroup.zmxy.openplatform.api.DefaultZhimaClient;\r\nimport com.antgroup.zmxy.openplatform.api.FileItem;\r\nimport com.antgroup.zmxy.openplatform.api.ZhimaApiException;\r\nimport com.antgroup.zmxy.openplatform.api.request.ZhimaAuthInfoAuthorizeRequest;\r\nimport com.antgroup.zmxy.openplatform.api.response.ZhimaAuthInfoAuthorizeResponse;\r\n \r\npublic class TestZhimaAuthInfoAuthorize {\r\n    \/\/\u829d\u9ebb\u5f00\u653e\u5e73\u53f0\u5730\u5740\r\n    private String gatewayUrl     = &quot;https:\/\/zmopenapi.zmxy.com.cn\/openapi.do&quot;;\r\n    \/\/\u5546\u6237\u5e94\u7528 Id\r\n    private String appId          = &quot;***&quot;;\r\n    \/\/\u5546\u6237 RSA \u79c1\u94a5\r\n    private String privateKey     = &quot;***&quot;;\r\n    \/\/\u829d\u9ebb RSA \u516c\u94a5\r\n    private String zhimaPublicKey = &quot;***&quot;;\r\n    public void  testZhimaAuthInfoAuthorize() {\r\n        ZhimaAuthInfoAuthorizeRequest req = new ZhimaAuthInfoAuthorizeRequest();\r\n        req.setChannel(&quot;apppc&quot;);\r\n        req.setPlatform(&quot;zmop&quot;);\r\n               req.setIdentityType(&quot;1&quot;);\/\/ \u5fc5\u8981\u53c2\u6570        \r\n               req.setIdentityParam(&quot;{\\&quot;name\\&quot;:\\&quot;\u5f20\u4e09\\&quot;,\\&quot;certType\\&quot;:\\&quot;IDENTITY_CARD\\&quot;,\\&quot;certNo\\&quot;:\\&quot;330100xxxxxxxxxxxx\\&quot;}&quot;);\/\/ \u5fc5\u8981\u53c2\u6570        \r\n               req.setBizParams(&quot;{\\&quot;auth_code\\&quot;:\\&quot;M_H5\\&quot;,\\&quot;channelType\\&quot;:\\&quot;app\\&quot;,\\&quot;state\\&quot;:\\&quot;\u5546\u6237\u81ea\u5b9a\u4e49\\&quot;}&quot;);\/\/        \r\n                DefaultZhimaClient client = new DefaultZhimaClient(gatewayUrl, appId, privateKey,\r\n            zhimaPublicKey);\r\n        try {\r\n            String url = client.generatePageRedirectInvokeUrl(request);  \r\n            System.out.println(url);\r\n        } catch (ZhimaApiException e) {\r\n            e.printStackTrace();\r\n        }\r\n    }\r\n    public static void main(String[] args) {\r\n        TestZhimaAuthInfoAuthorize result = new  TestZhimaAuthInfoAuthorize();\r\n        result.testZhimaAuthInfoAuthorize();\r\n    }\r\n}<\/pre>\n<p>\n\t\u6ce8\u610f\uff1a<span style=\"color:#4B0082\"><strong>\u5982\u679c\u662f\u6388\u6743\u63a5\u53e3\u7684\u8bdd\uff0c\u5546\u6237\u662f\u6709\u6743\u5173\u95ed\u6388\u6743\u7684\uff0c\u6bd4\u5982\u4f60\u7684\u516c\u53f8\u63a5\u5165\u4e86\u829d\u9ebb\uff0c\u4f60\u7684\u5ba2\u6237\u516c\u53f8\u6709\u4e00\u5929\u5173\u95ed\u4e86\u829d\u9ebb\u7684\u6388\u6743\uff0c\u90a3\u4e48\u4f60\u5c31\u83b7\u53d6\u4e0d\u5230\u4e86\uff0c\u5c31\u7b97\u6709OPENID\uff01<\/strong><\/span>\u5982\u679c\u5546\u6237\u5173\u95ed\u4e86\u6388\u6743\uff0c\u5c31\u7b97\u4f60\u62ff\u5230\u4e86OPENID\uff0c\u4e5f\u4f1a\u83b7\u53d6\u4e0d\u6210\u529f\uff0c\u53ef\u4ee5\u8fd9\u4e48\u505a\uff1a\u628aOPENID\u5b58\u5165\u6570\u636e\u5e93\uff0c\u5982\u679c\u7b2c\u4e00\u6b21\u8c03\u7528\uff0c\u5c31\u7528\u4e0b\u9762\u7b2c\u4e8c\u79cd\u65b9\u5f0f\uff0c\u5982\u679c\u7b2c\u4e8c\u6b21\u8c03\u7528\uff0c\u5c31\u7528\u7b2c\u4e00\u79cd\u65b9\u5f0f\uff0c\u56e0\u4e3a\u5b83\u4f1a\u8fd4\u56de\u662f\u5426\u6388\u6743\u6210\u529f\uff0c\u8fd9\u6837\u5c31\u4e0d\u7528\u6bcf\u6b21\u5bf9\u7528\u8eab\u4efd\u8bc1\u548c\u59d3\u540d\u53bb\u67e5\u4e86\uff0c\u56e0\u4e3aOPENID\u4e00\u65e6\u751f\u6210\uff0c\u5c31\u662f\u552f\u4e00\u4e14\u4e0d\u53d8\u7684\u3002<\/p>\n<!-- <audio autoplay=\"autoplay\" height=\"100\" width=\"100\" hidden=\"true\"><source src=\"https:\/\/c.coka.la\/orAvPR.mp3\" type=\"audio\/mp3\"\/><\/audio><img decoding=\"async\" src=\"https:\/\/images.weserv.nl\/?url=https:\/\/ws3.sinaimg.cn\/large\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/> --><p><!-- <img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/xmt1139057136\/xttblog\/master\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/>--><img decoding=\"async\" src=\"https:\/\/saas.51autoparts.cn\/api\/admin\/sys-file\/oss\/file?fileName=84db51f8561e448f9a4fda2eff0811f9.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/><\/p><p>\u6700\u540e\uff0c\u6b22\u8fce\u5173\u6ce8\u6211\u7684\u4e2a\u4eba\u5fae\u4fe1\u516c\u4f17\u53f7\uff1a\u4e1a\u4f59\u8349\uff08yyucao\uff09\uff01<b>\u53ef\u52a0\u4f5c\u8005\u5fae\u4fe1\u53f7\uff1a<font color=\"red\">xttblog2<\/font>\u3002\u5907\u6ce8\uff1a\u201c1\u201d\uff0c\u6dfb\u52a0\u535a\u4e3b\u5fae\u4fe1\u62c9\u4f60\u8fdb\u5fae\u4fe1\u7fa4\u3002\u5907\u6ce8\u9519\u8bef\u4e0d\u4f1a\u540c\u610f\u597d\u53cb\u7533\u8bf7\u3002<\/b>\u518d\u6b21\u611f\u8c22\u60a8\u7684\u5173\u6ce8\uff01\u540e\u7eed\u6709\u7cbe\u5f69\u5185\u5bb9\u4f1a\u7b2c\u4e00\u65f6\u95f4\u53d1\u7ed9\u60a8\uff01\u539f\u521b\u6587\u7ae0\u6295\u7a3f\u8bf7\u53d1\u9001\u81f3532009913@qq.com\u90ae\u7bb1\u3002\u5546\u52a1\u5408\u4f5c\u4e5f\u53ef\u6dfb\u52a0\u4f5c\u8005\u5fae\u4fe1\u8fdb\u884c\u8054\u7cfb\uff01<\/p><p>\u672c\u6587\u539f\u6587\u51fa\u5904\uff1a<a href=\"https:\/\/www.xttblog.com\">\u4e1a\u4f59\u8349<\/a>\uff1a &raquo; <a href=\"https:\/\/www.xttblog.com\/?p=1036\">\u652f\u4ed8\u5b9d\u829d\u9ebb\u4fe1\u7528\u5546\u5bb6\u63a5\u5165\u6559\u7a0b<\/a><\/p><!-- <div class=\"bd-reward-stl\"><button id=\"bdRewardBtn\"><span><\/span><\/button><\/div> -->","protected":false},"excerpt":{"rendered":"<p>\u603b\u7ed3\u4e00\u4e0b\uff0c\u5e38\u7528\u7684\u7b2c\u4e09\u65b9\u5f00\u653eAPI\uff0c\u4e00\u822c\u90fd\u6709\u4e00\u4e0b\u51e0\u4e2a\u8981\u7d20\uff1a\u5e94\u7528ID\uff0c\u5e94\u7528\u516c\u94a5\uff0c\u5e94\u7528\u79c1\u94a5\uff0c\u8bf7\u6c42\u516c\u5171URL\uff0c\u8bf7\u6c42\u63a5\u53e3 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[753,754,185,752],"class_list":["post-1036","post","type-post","status-publish","format-standard","hentry","category-java","tag-753","tag-754","tag-185","tag-752"],"_links":{"self":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1036","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1036"}],"version-history":[{"count":1,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1036\/revisions"}],"predecessor-version":[{"id":1037,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1036\/revisions\/1037"}],"wp:attachment":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1036"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1036"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1036"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}