1.被一慣性誤導,以爲app需要的下面這個東西是服務端通過支付寶接口請求的,其實是自己拼接的
apiname=com.alipay.account.auth&app_id=xxxxx&app_name=mc&auth_type=AUTHACCOUNT&biz_type=openservice&method=alipay.open.auth.sdk.code.get&pid=xxxxx&product_id=APP_FAST_LOGIN&scope=kuaijie&sign_type=RSA2&target_id=20141225xxxx&sign=fMcp4GtiM6rxSIeFnJCVePJKV43eXrUP86CQgiLhDHH2u%2FdN75eEvmywc2ulkm7qKRetkU9fbVZtJIqFdMJcJ9Yp%2BJI%2FF%2FpESafFR6rB2fRjiQQLGXvxmDGVMjPSxHxVtIqpZy5FDoKUSjQ2%2FILDKpu3%2F%2BtAtm2jRw1rUoMhgt0%3D
2.拼接代碼
/**
* 獲取支付寶授權 authinfo
* @return
*/
public static String getAuthInfoStr() {
StringBuilder strInfo=new StringBuilder();
strInfo.append("apiname=com.alipay.account.auth");
strInfo.append("&app_id="+APP_ID());
strInfo.append("&app_name=mc");
strInfo.append("&auth_type=AUTHACCOUNT");
strInfo.append("&biz_type=openservice");
strInfo.append("&method=alipay.open.auth.