| | |
| | | import android.content.pm.PackageManager; |
| | | import android.net.Uri; |
| | | import android.provider.Settings; |
| | | import android.support.v4.app.ActivityCompat; |
| | | import android.support.v4.content.ContextCompat; |
| | | import android.widget.Toast; |
| | | |
| | | import androidx.core.app.ActivityCompat; |
| | | import androidx.core.content.ContextCompat; |
| | | |
| | | import com.quicksdk.BaseCallBack; |
| | | import com.quicksdk.Extend; |
| | |
| | | import com.secondworld.sdk.utils.CodeA2U; |
| | | import com.secondworld.sdk.utils.LogUtil; |
| | | import com.secondworld.sdk.utils.RequestCode; |
| | | import com.unity3d.player.UnityPlayer; |
| | | |
| | | import org.json.JSONException; |
| | | import org.json.JSONObject; |
| | |
| | | try { |
| | | args.clear(); |
| | | JSONObject info = new JSONObject(); |
| | | String cid = com.quicksdk.Extend.getInstance().getExtrasConfig("cid"); |
| | | if (cid == null || cid.isEmpty()) |
| | | cid = com.quicksdk.Extend.getInstance().getChannelType() + ""; |
| | | String account = userInfo.getUID() + "@" + cid; |
| | | String channel = com.quicksdk.Extend.getInstance().getExtrasConfig("channel"); |
| | | if (channel == null || channel.isEmpty()) |
| | | channel = com.quicksdk.Extend.getInstance().getChannelType() + ""; |
| | | String account = userInfo.getUID() + "@" + channel; |
| | | info.put("account", account); |
| | | info.put("userName", userInfo.getUID()); |
| | | info.put("token", userInfo.getToken()); |