{"action":"created","issue":{"url":"https://api.github.com/repos/beecloud/beecloud-rest-api/issues/17","labels_url":"https://api.github.com/repos/beecloud/beecloud-rest-api/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/beecloud/beecloud-rest-api/issues/17/comments","events_url":"https://api.github.com/repos/beecloud/beecloud-rest-api/issues/17/events","html_url":"https://github.com/beecloud/beecloud-rest-api/issues/17","id":106994385,"number":17,"title":"支付接口的返回值如何用？","user":{"login":"hustKiwi","id":123074,"avatar_url":"https://avatars.githubusercontent.com/u/123074?v=3","gravatar_id":"","url":"https://api.github.com/users/hustKiwi","html_url":"https://github.com/hustKiwi","followers_url":"https://api.github.com/users/hustKiwi/followers","following_url":"https://api.github.com/users/hustKiwi/following{/other_user}","gists_url":"https://api.github.com/users/hustKiwi/gists{/gist_id}","starred_url":"https://api.github.com/users/hustKiwi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hustKiwi/subscriptions","organizations_url":"https://api.github.com/users/hustKiwi/orgs","repos_url":"https://api.github.com/users/hustKiwi/repos","events_url":"https://api.github.com/users/hustKiwi/events{/privacy}","received_events_url":"https://api.github.com/users/hustKiwi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-17T14:13:38Z","updated_at":"2015-09-18T06:36:12Z","closed_at":null,"body":"依文档说明调用支付接口 `/1/rest/bill` ，会获得如下数据格式的返回值：\r\n```coffeescript\r\n{\r\n  result_msg: 'OK',\r\n  resultCode: 0,\r\n  errMsg: 'OK:',\r\n  err_detail: '',\r\n  result_code: 0,\r\n  html: '<form id=\"alipaysubmit\" name=\"alipaysubmit\" action=\"https://mapi.alipay.com/gateway.do?_input_charset=utf-8\" method=\"get\"><input type=\"hidden\" name=\"seller_email\" value=\"admin@google.com\"/><input type=\"hidden\" name=\"subject\" value=\"21. 吉他入门\"/><input type=\"hidden\" name=\"_input_charset\" value=\"utf-8\"/><input type=\"hidden\" name=\"sign\" value=\"faceb960d9d2e1d57b7c9fd6a7915cc8\"/><input type=\"hidden\" name=\"notify_url\" value=\"http://payservice.beecloud.cn/bcpay/aliPayDynamic/c5d1cba1-5e3f-4ba0-941d-9b0a371fe719_f1d1287c-3eeb-41e5-a899-57933bccd8cd.php\"/><input type=\"hidden\" name=\"payment_type\" value=\"1\"/><input type=\"hidden\" name=\"out_trade_no\" value=\"55f8691c598846e06b775305\"/><input type=\"hidden\" name=\"partner\" value=\"2088711322600300\"/><input type=\"hidden\" name=\"service\" value=\"create_direct_pay_by_user\"/><input type=\"hidden\" name=\"total_fee\" value=\"39.0\"/><input type=\"hidden\" name=\"return_url\" value=\"http://127.0.0.1:8889/payment/_hook\"/><input type=\"hidden\" name=\"exter_invoke_ip\" value=\"1.202.65.82\"/><input type=\"hidden\" name=\"sign_type\" value=\"MD5\"/><input type=\"submit\" value=\"确认\" style=\"display:none;\"></form><script>document.forms[\\'alipaysubmit\\'].submit();</script>',\r\n  id: 'f1d1287c-3eeb-41e5-a899-57933bccd8cd',\r\n  url: 'https://mapi.alipay.com/gateway.do?_input_charset=utf-8&seller_email=admin@google.com&subject=21. 吉他入门&_input_charset=utf-8&sign=faceb960d9d2e1d57b7c9fd6a7915cc8&notify_url=http://payservice.beecloud.cn/bcpay/aliPayDynamic/c5d1cba1-5e3f-4ba0-941d-9b0a371fe719_f1d1287c-3eeb-41e5-a899-57933bccd8cd.php&payment_type=1&out_trade_no=55f8691c598846e06b775305&partner=2088711322600300&service=create_direct_pay_by_user&total_fee=39.0&return_url=http://127.0.0.1:8889/payment/_hook&exter_invoke_ip=1.202.65.82&sign_type=MD5'\r\n}\r\n```\r\n\r\n### 这里有两个问题：\r\n1. 请问这个返回值中 `html` 和 `url` 有什么区别？看了下，最后的结果都是向 `Alipay Server` 发带支付参数的get请求。\r\n2. 这个返回值我是通过demo中提供的 `App Id 和 Secret` 调用API获得的，但访问返回结构中的 `url` ，支付宝报错，提示：\r\n\r\n> 调试错误，请回到请求来源地，重新发起请求。\r\n错误代码 ILLEGAL_PARTNER\r\n\r\n请问这是什么原因？"},"comment":{"url":"https://api.github.com/repos/beecloud/beecloud-rest-api/issues/comments/141357255","html_url":"https://github.com/beecloud/beecloud-rest-api/issues/17#issuecomment-141357255","issue_url":"https://api.github.com/repos/beecloud/beecloud-rest-api/issues/17","id":141357255,"user":{"login":"Danzeer","id":6596018,"avatar_url":"https://avatars.githubusercontent.com/u/6596018?v=3","gravatar_id":"","url":"https://api.github.com/users/Danzeer","html_url":"https://github.com/Danzeer","followers_url":"https://api.github.com/users/Danzeer/followers","following_url":"https://api.github.com/users/Danzeer/following{/other_user}","gists_url":"https://api.github.com/users/Danzeer/gists{/gist_id}","starred_url":"https://api.github.com/users/Danzeer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Danzeer/subscriptions","organizations_url":"https://api.github.com/users/Danzeer/orgs","repos_url":"https://api.github.com/users/Danzeer/repos","events_url":"https://api.github.com/users/Danzeer/events{/privacy}","received_events_url":"https://api.github.com/users/Danzeer/received_events","type":"User","site_admin":false},"created_at":"2015-09-18T06:36:12Z","updated_at":"2015-09-18T06:36:12Z","body":"@hustKiwi little problem？如果你想用ajax获取些支付form参数，js里自己做form submit貌似目前好做（1jsonp目前不支持 2server获取到html可能需要你自己匹配出各个参数）"}}