|
@@ -5,10 +5,9 @@ import android.app.Dialog;
|
|
|
import android.content.Context;
|
|
|
import android.content.Intent;
|
|
|
import android.graphics.Bitmap;
|
|
|
+import android.graphics.BitmapFactory;
|
|
|
import android.graphics.Rect;
|
|
|
import android.os.Bundle;
|
|
|
-import android.os.Handler;
|
|
|
-import android.os.Looper;
|
|
|
import android.text.TextUtils;
|
|
|
import android.util.DisplayMetrics;
|
|
|
import android.util.Log;
|
|
@@ -22,10 +21,16 @@ import android.widget.Toast;
|
|
|
|
|
|
import com.fq.channel.sdk.base.config.FqConfig;
|
|
|
import com.fq.channel.sdk.base.constants.ConstSet;
|
|
|
+import com.fq.channel.sdk.base.exception.BaseException;
|
|
|
import com.fq.channel.sdk.base.interfaces.FQPluginApi;
|
|
|
import com.fq.channel.sdk.base.interfaces.PluginResultHandler;
|
|
|
+import com.fq.channel.sdk.base.net.HttpManager;
|
|
|
+import com.fq.channel.sdk.base.net.callback.BaseCallback;
|
|
|
+import com.fq.channel.sdk.base.net.req.ParamsUtils;
|
|
|
+import com.fq.channel.sdk.base.net.req.RepOrderBody;
|
|
|
import com.fq.channel.sdk.base.utils.FqLog;
|
|
|
import com.fq.channel.sdk.base.utils.Utils;
|
|
|
+import com.fq.threelib.gson.JsonObject;
|
|
|
import com.tencent.ysdk.api.YSDKApi;
|
|
|
import com.tencent.ysdk.framework.common.BaseRet;
|
|
|
import com.tencent.ysdk.framework.common.eFlag;
|
|
@@ -54,11 +59,17 @@ public class SdkPluginYsdk extends FQPluginApi implements UserListener, BuglyLis
|
|
|
private static final String TAG = "SdkPluginYsdk";
|
|
|
|
|
|
private PluginResultHandler loginHandler, payHandler, logoutHander;
|
|
|
-
|
|
|
- * 数据统计
|
|
|
- */
|
|
|
- private int dataType;
|
|
|
- private String roleId, roleName, roleLevel, zoneId, zoneName, serverId, serverName, balance, vipLevel, partyName;
|
|
|
+
|
|
|
+ private Activity mActivity;
|
|
|
+
|
|
|
+ private String qqAppId, wxAppId, mAppid = null;
|
|
|
+ private String openId, accessToken, platform = null;
|
|
|
+ private String payToken;
|
|
|
+ private String pf;
|
|
|
+ private String pfKey;
|
|
|
+ private String zoneId;
|
|
|
+ private String fqBillNo;
|
|
|
+ private String thirdAmt;
|
|
|
|
|
|
|
|
|
* 初始化
|
|
@@ -66,8 +77,8 @@ public class SdkPluginYsdk extends FQPluginApi implements UserListener, BuglyLis
|
|
|
@Override
|
|
|
public void init(Context activity, final PluginResultHandler handler) {
|
|
|
FqLog.i(TAG, "init");
|
|
|
- String qqAppId = (String) FqConfig.get().get("qqAppId");
|
|
|
- String wxAppId = (String) FqConfig.get().get("wxAppId");
|
|
|
+ qqAppId = (String) FqConfig.get().get("qqAppId");
|
|
|
+ wxAppId = (String) FqConfig.get().get("wxAppId");
|
|
|
FqLog.i(TAG, "qqAppId/wxAppId:" + qqAppId + "/" + wxAppId);
|
|
|
if (TextUtils.isEmpty(qqAppId) || TextUtils.isEmpty(wxAppId)) {
|
|
|
FqLog.e(TAG, "QQ_APP_ID 或者 WX_APP_ID 为空!");
|
|
@@ -83,10 +94,11 @@ public class SdkPluginYsdk extends FQPluginApi implements UserListener, BuglyLis
|
|
|
@Override
|
|
|
public void login(final Context activity, final PluginResultHandler handler) {
|
|
|
FqLog.i(TAG, "login ");
|
|
|
+ mActivity = (Activity) activity;
|
|
|
loginHandler = handler;
|
|
|
final Dialog mDialog = new Dialog(activity, Utils.getIdentifier("LoginDialog", "style"));
|
|
|
mDialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
|
|
|
- final View view = LayoutInflater.from((Activity) activity).inflate(Utils.getIdentifier("fq_ysdk_login", "layout"), null);
|
|
|
+ final View view = LayoutInflater.from(mActivity).inflate(Utils.getIdentifier("fq_ysdk_login", "layout"), null);
|
|
|
Button wx = view.findViewById(Utils.getIdentifier("ysdk_wx", "id"));
|
|
|
Button qq = view.findViewById(Utils.getIdentifier("ysdk_qq", "id"));
|
|
|
mDialog.setContentView(view);
|
|
@@ -119,31 +131,30 @@ public class SdkPluginYsdk extends FQPluginApi implements UserListener, BuglyLis
|
|
|
final PluginResultHandler handler) {
|
|
|
FqLog.i(TAG, "pay map:" + (map != null ? map.toString() : ""));
|
|
|
payHandler = handler;
|
|
|
- String orderId = String.valueOf(map.get(ConstSet.PAY_ORDER_ID));
|
|
|
- String extral = String.valueOf(map.get(ConstSet.PAY_EXTRAL_INFO));
|
|
|
- float price = Float.valueOf((String) map.get(ConstSet.PAY_PRICE));
|
|
|
- String productName = String.valueOf(map.get(ConstSet.PAY_PRODUCT_NAME));
|
|
|
- String goodsResData = String.valueOf(map.get(ConstSet.PAY_CHARGE_ID));
|
|
|
- String notifyUrl = String.valueOf(map.get(ConstSet.PAY_NOTIFY_URl));
|
|
|
- int amount = 0;
|
|
|
- try {
|
|
|
- amount = (int) (price * 100);
|
|
|
- } catch (NumberFormatException e) {
|
|
|
- e.printStackTrace();
|
|
|
+ fqBillNo = (String) map.get(ConstSet.PAY_ORDER_ID);
|
|
|
+ Float price = Float.valueOf((String) map.get(ConstSet.PAY_PRICE));
|
|
|
+ int payRate = Integer.valueOf((String) map.get(ConstSet.PAY_RATE));
|
|
|
+ if (price > 0) {
|
|
|
+ price = price * payRate;
|
|
|
}
|
|
|
ByteArrayOutputStream baos = new ByteArrayOutputStream();
|
|
|
byte[] appResData = baos.toByteArray();
|
|
|
+ thirdAmt = String.valueOf(price.intValue());
|
|
|
+ zoneId = "1";
|
|
|
+ FqLog.i(TAG, "price : " + thirdAmt);
|
|
|
+ YSDKApi.recharge(zoneId, thirdAmt, false, appResData, "ysdkExt", new PayListener() {
|
|
|
|
|
|
- YSDKApi.recharge("1", String.valueOf(price), false, appResData, "ysdkExt", new PayListener() {
|
|
|
@Override
|
|
|
public void OnPayNotify(PayRet ret) {
|
|
|
- FqLog.i(TAG, ret.toString());
|
|
|
+ FqLog.i(TAG, "OnPayNotify:"+ret.toString());
|
|
|
if (PayRet.RET_SUCC == ret.ret) {
|
|
|
|
|
|
switch (ret.payState) {
|
|
|
|
|
|
case PayRet.PAYSTATE_PAYSUCC:
|
|
|
- fqSdkSuccess(payHandler);
|
|
|
+
|
|
|
+ ReqYsdkPayBody payBody = new ReqYsdkPayBody( openId, accessToken, payToken, pf, pfKey, zoneId, fqBillNo, thirdAmt, mAppid, platform);
|
|
|
+ ysdkPayNotify(payBody);
|
|
|
break;
|
|
|
|
|
|
case PayRet.PAYSTATE_PAYCANCEL:
|
|
@@ -210,123 +221,17 @@ public class SdkPluginYsdk extends FQPluginApi implements UserListener, BuglyLis
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public void changeAccount(Activity activity, final PluginResultHandler prh) {
|
|
|
+ public void changeAccount(Context activity) {
|
|
|
FqLog.i(TAG, " changeAccount ");
|
|
|
}
|
|
|
|
|
|
|
|
|
- private void showTips(final String message) {
|
|
|
- Handler handler = new Handler(Looper.getMainLooper());
|
|
|
- handler.post(new Runnable() {
|
|
|
-
|
|
|
- @Override
|
|
|
- public void run() {
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
-
|
|
|
|
|
|
* 游戏角色信息
|
|
|
*
|
|
|
* @param data
|
|
|
*/
|
|
|
public void setRoleInfo(Bundle data) {
|
|
|
- if (null == data) {
|
|
|
- data = new Bundle();
|
|
|
- }
|
|
|
- Log.i(TAG, "setExtraBundle data:" + data.toString());
|
|
|
-
|
|
|
- roleName = data.getString("roleName");
|
|
|
- roleLevel = data.getString("roleLevel");
|
|
|
- roleId = data.getString("roleId");
|
|
|
- serverId = data.getString("serverId");
|
|
|
- serverName = data.getString("serverName");
|
|
|
- balance = data.getString("balance");
|
|
|
- vipLevel = data.getString("vipLevel");
|
|
|
- partyName = data.getString("partyName");
|
|
|
- zoneId = data.getString("zoneId");
|
|
|
- zoneName = data.getString("zoneName");
|
|
|
- dataType = data.getInt("dataType");
|
|
|
-
|
|
|
- StringBuffer reportData = new StringBuffer();
|
|
|
- reportData.append("[");
|
|
|
- reportData.append(" roleName:" + roleName);
|
|
|
- reportData.append(" roleLevel:" + roleLevel);
|
|
|
- reportData.append(" roleId:" + roleId);
|
|
|
- reportData.append(" serverId:" + serverId);
|
|
|
- reportData.append(" serverName:" + serverName);
|
|
|
- reportData.append(" balance:" + balance);
|
|
|
- reportData.append(" vipLevel:" + vipLevel);
|
|
|
- reportData.append(" partyName:" + zoneId);
|
|
|
- reportData.append(" zoneName:" + zoneName);
|
|
|
- reportData.append(" dataType:" + dataType);
|
|
|
- reportData.append("]");
|
|
|
-
|
|
|
- switch (dataType) {
|
|
|
- case 0:
|
|
|
- showTips("数据上报:创建角色 ");
|
|
|
- Log.i(TAG, "reportData" + reportData);
|
|
|
- break;
|
|
|
-
|
|
|
- case 1:
|
|
|
- showTips("数据上报:角色升级");
|
|
|
- Log.i(TAG, "reportData" + reportData);
|
|
|
- break;
|
|
|
-
|
|
|
- case 2:
|
|
|
- showTips("数据上报:上传区服信息");
|
|
|
- Log.i(TAG, "reportData" + reportData);
|
|
|
- break;
|
|
|
-
|
|
|
- case 3:
|
|
|
- showTips("数据上报:登录");
|
|
|
- Log.i(TAG, "reportData" + reportData);
|
|
|
- break;
|
|
|
-
|
|
|
- case 4:
|
|
|
- showTips("数据上报:进入游戏");
|
|
|
- Log.i(TAG, "reportData" + reportData);
|
|
|
- break;
|
|
|
-
|
|
|
- case 5:
|
|
|
- showTips("数据上报:支付");
|
|
|
- Log.i(TAG, "reportData" + reportData);
|
|
|
- break;
|
|
|
-
|
|
|
- case 6:
|
|
|
- showTips("数据上报:退出游戏");
|
|
|
- Log.i(TAG, "reportData" + reportData);
|
|
|
- break;
|
|
|
-
|
|
|
- case 7:
|
|
|
- showTips("数据上报:退出游戏");
|
|
|
- FqLog.i(TAG, "reportData" + reportData);
|
|
|
- break;
|
|
|
- default:
|
|
|
- break;
|
|
|
- }
|
|
|
-
|
|
|
- String roleId = data.getString("roleId");
|
|
|
- String roleName = data.getString("roleName");
|
|
|
- String roleLevel = data.getString("roleLevel");
|
|
|
- String zoneId = data.getString("zoneId");
|
|
|
- String zoneName = data.getString("zoneName");
|
|
|
- String serverId = data.getString("serverId");
|
|
|
- String serverName = data.getString("serverName");
|
|
|
- int dataType = data.getInt("dataType");
|
|
|
- switch (dataType) {
|
|
|
-
|
|
|
- case 3:
|
|
|
- FqLog.i(TAG, "setExtraBundle: roleId:" + roleId + ",roleName:" + roleName + ",roleLevel:" + roleLevel + ",serverId:" + serverId + ",serverName:" + serverName + ",chapter:Idreamsky");
|
|
|
- break;
|
|
|
-
|
|
|
- default:
|
|
|
- break;
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
@Override
|
|
@@ -336,7 +241,7 @@ public class SdkPluginYsdk extends FQPluginApi implements UserListener, BuglyLis
|
|
|
|
|
|
@Override
|
|
|
public int getPayId() {
|
|
|
- return 4;
|
|
|
+ return 5;
|
|
|
}
|
|
|
|
|
|
|
|
@@ -423,28 +328,28 @@ public class SdkPluginYsdk extends FQPluginApi implements UserListener, BuglyLis
|
|
|
}
|
|
|
|
|
|
public void onRestart(Activity context) {
|
|
|
- Log.i(TAG, "onRestart");
|
|
|
- YSDKApi.onRestart((Activity) context);
|
|
|
+ FqLog.i(TAG, "onRestart");
|
|
|
+ YSDKApi.onRestart(context);
|
|
|
}
|
|
|
|
|
|
public void onResume(Activity context) {
|
|
|
- Log.i(TAG, "onResume");
|
|
|
- YSDKApi.onResume((Activity) context);
|
|
|
+ FqLog.i(TAG, "onResume");
|
|
|
+ YSDKApi.onResume(context);
|
|
|
}
|
|
|
|
|
|
public void onPause(Activity context) {
|
|
|
- Log.i(TAG, "onPause");
|
|
|
- YSDKApi.onPause((Activity) context);
|
|
|
+ FqLog.i(TAG, "onPause");
|
|
|
+ YSDKApi.onPause(context);
|
|
|
}
|
|
|
|
|
|
public void onStop(Activity context) {
|
|
|
- Log.i(TAG, "onStop");
|
|
|
- YSDKApi.onStop((Activity) context);
|
|
|
+ FqLog.i(TAG, "onStop");
|
|
|
+ YSDKApi.onStop(context);
|
|
|
}
|
|
|
|
|
|
public void onDestroy(Activity context) {
|
|
|
- Log.i(TAG, "onDestroy");
|
|
|
- YSDKApi.onDestroy((Activity) context);
|
|
|
+ FqLog.i(TAG, "onDestroy");
|
|
|
+ YSDKApi.onDestroy(context);
|
|
|
}
|
|
|
|
|
|
public void onActivityResult(int requestCode, int resultCode, Intent data) {
|
|
@@ -489,94 +394,92 @@ public class SdkPluginYsdk extends FQPluginApi implements UserListener, BuglyLis
|
|
|
*/
|
|
|
@Override
|
|
|
public void OnLoginNotify(UserLoginRet ret) {
|
|
|
- FqLog.i(TAG, "OnLoginNotify called ret:" + ret.getAccessToken() + " the ret:" + ret.toString());
|
|
|
+ FqLog.i(TAG, "OnLoginNotify called");
|
|
|
+ FqLog.i(TAG, "OnLoginNotify called ret:" + ret.getAccessToken());
|
|
|
+ FqLog.i(TAG, "OnLoginNotify ret:" + ret.toString());
|
|
|
switch (ret.flag) {
|
|
|
case eFlag.Succ:
|
|
|
YSDKApi.getLoginRecord(ret);
|
|
|
-
|
|
|
if (ret.ret != BaseRet.RET_SUCC) {
|
|
|
Log.d(TAG, "UserLogin error!!!");
|
|
|
fqSdkError(loginHandler, "UserLogin error!!!");
|
|
|
YSDKApi.logout();
|
|
|
return;
|
|
|
}
|
|
|
- ePlatform mPlatform = ePlatform.QQ;
|
|
|
-
|
|
|
if (ret.platform == ePlatform.PLATFORM_ID_QQ) {
|
|
|
- mPlatform = ePlatform.QQ;
|
|
|
- YSDKApi.queryUserInfo(mPlatform);
|
|
|
+ mAppid = qqAppId;
|
|
|
+ platform = "1";
|
|
|
} else if (ret.platform == ePlatform.PLATFORM_ID_WX) {
|
|
|
- mPlatform = ePlatform.WX;
|
|
|
- YSDKApi.queryUserInfo(mPlatform);
|
|
|
+ mAppid = wxAppId;
|
|
|
+ platform = "2";
|
|
|
}
|
|
|
-
|
|
|
+ pf = ret.pf;
|
|
|
+ pfKey = ret.pf_key;
|
|
|
+ payToken = ret.getPayToken();
|
|
|
+ openId = ret.open_id;
|
|
|
+ accessToken = ret.getAccessToken();
|
|
|
+ FqLog.i(TAG, "platform: " + platform + "---mAppid:" + mAppid + "---openId:" + openId + "---accessToken:" + accessToken);
|
|
|
+
|
|
|
+
|
|
|
+ JsonObject jsonObject = new JsonObject();
|
|
|
+ jsonObject.addProperty("appId", mAppid);
|
|
|
+ jsonObject.addProperty("accessToken", accessToken);
|
|
|
+ jsonObject.addProperty("openId", openId);
|
|
|
+ jsonObject.addProperty("platform", platform);
|
|
|
+ FqLog.e(TAG, "loginFqSdkSuccess: " + jsonObject.toString());
|
|
|
+ loginFqSdkSuccess(loginHandler, "ysdk", jsonObject);
|
|
|
break;
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+ case eFlag.QQ_UserCancel:
|
|
|
+ ysdkLoginError("用户取消授权,请重试");
|
|
|
+ break;
|
|
|
+ case eFlag.QQ_LoginFail:
|
|
|
+ ysdkLoginError("QQ登录失败,请重试");
|
|
|
+ break;
|
|
|
+ case eFlag.QQ_NetworkErr:
|
|
|
+ ysdkLoginError("QQ登录异常,请重试");
|
|
|
+ break;
|
|
|
+ case eFlag.QQ_NotInstall:
|
|
|
+ ysdkLoginError("手机未安装手Q,请安装后重试");
|
|
|
+ break;
|
|
|
+ case eFlag.QQ_NotSupportApi:
|
|
|
+ showTips("手机手Q版本太低,请升级后重试");
|
|
|
+ fqSdkError(loginHandler, "手机手Q版本太低,请升级后重试");
|
|
|
+ break;
|
|
|
+ case eFlag.WX_NotInstall:
|
|
|
+ ysdkLoginError("手机未安装微信,请安装后重试");
|
|
|
+ break;
|
|
|
+ case eFlag.WX_NotSupportApi:
|
|
|
+ ysdkLoginError("手机微信版本太低,请升级后重试");
|
|
|
+ break;
|
|
|
+ case eFlag.WX_UserCancel:
|
|
|
+ ysdkLoginError("用户取消授权,请重试");
|
|
|
+ break;
|
|
|
+ case eFlag.WX_UserDeny:
|
|
|
+ ysdkLoginError("用户拒绝了授权,请重试");
|
|
|
+ break;
|
|
|
+ case eFlag.WX_LoginFail:
|
|
|
+ ysdkLoginError("微信登录失败,请重试");
|
|
|
+ break;
|
|
|
+ case eFlag.Login_TokenInvalid:
|
|
|
+ ysdkLoginError("您尚未登录或者之前的登录已过期,请重试");
|
|
|
+ break;
|
|
|
+ case eFlag.Login_NotRegisterRealName:
|
|
|
+ ysdkLoginError("您的账号没有进行实名认证,请实名认证后重试");
|
|
|
+ break;
|
|
|
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ private void ysdkLoginError(String msg) {
|
|
|
+ showTips(msg);
|
|
|
+ fqSdkError(loginHandler, msg);
|
|
|
+ YSDKApi.logout();
|
|
|
+ }
|
|
|
+
|
|
|
@Override
|
|
|
public void OnWakeupNotify(WakeupRet ret) {
|
|
|
- FqLog.i(TAG, "called");
|
|
|
+ FqLog.i(TAG, "OnWakeupNotify called");
|
|
|
FqLog.i(TAG, ret.toString() + ":flag:" + ret.flag);
|
|
|
FqLog.i(TAG, ret.toString() + "msg:" + ret.msg);
|
|
|
FqLog.i(TAG, ret.toString() + "platform:" + ret.platform);
|
|
@@ -600,11 +503,13 @@ public class SdkPluginYsdk extends FQPluginApi implements UserListener, BuglyLis
|
|
|
|
|
|
@Override
|
|
|
public void OnRelationNotify(UserRelationRet relationRet) {
|
|
|
+ FqLog.i(TAG, "OnRelationNotify called");
|
|
|
+
|
|
|
String result = "";
|
|
|
result = result + "flag:" + relationRet.flag + "\n";
|
|
|
result = result + "msg:" + relationRet.msg + "\n";
|
|
|
result = result + "platform:" + relationRet.platform + "\n";
|
|
|
- Log.d(TAG, "OnRelationNotify:" + result);
|
|
|
+ FqLog.i(TAG, "OnRelationNotify:" + result);
|
|
|
PersonInfo personInfo = null;
|
|
|
JSONObject userProperty = new JSONObject();
|
|
|
if (relationRet.persons != null && relationRet.persons.size() > 0) {
|
|
@@ -628,8 +533,41 @@ public class SdkPluginYsdk extends FQPluginApi implements UserListener, BuglyLis
|
|
|
} else {
|
|
|
result = result + "relationRet.persons is bad";
|
|
|
}
|
|
|
- FqLog.e(TAG,"OnRelationNotify" + result);
|
|
|
-
|
|
|
+ FqLog.e(TAG, "OnRelationNotify" + result);
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
|
|
|
+
|
|
|
+ * 弹Toast
|
|
|
+ */
|
|
|
+ public void showTips(final String msg) {
|
|
|
+ if (mActivity != null) {
|
|
|
+ mActivity.runOnUiThread(new Runnable() {
|
|
|
+ @Override
|
|
|
+ public void run() {
|
|
|
+ FqLog.e(TAG, "msg:" + msg);
|
|
|
+ Toast.makeText(mActivity, msg, Toast.LENGTH_SHORT).show();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ private void ysdkPayNotify(ReqYsdkPayBody payBody){
|
|
|
+ String request = ParamsUtils.getInstance().generateParams(payBody);
|
|
|
+ FqLog.i(TAG, "ysdkPayNotify:" + request);
|
|
|
+ HttpManager.getInstance().post(FqConfig.get().getBaseUrl()+"/api/sdk/ysdk/v1/notify ", Utils.decodeText(request), new BaseCallback() {
|
|
|
+ @Override
|
|
|
+ public void onFailure(BaseException msg) {
|
|
|
+ FqLog.e(TAG, "ysdkPayNotify: onFailure" + msg.getMsg());
|
|
|
+ fqSdkError(payHandler,msg.getMsg());
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void onSuccess(int code, String msg, Object data) {
|
|
|
+ FqLog.i(TAG, "ysdkPayNotify msg::" +msg+" /data: "+ data.toString());
|
|
|
+ fqSdkSuccess(payHandler);
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|
|
|
}
|