void OnEAuthSuccess(TalkingDataEAuthType type, string requestId, string phoneNumber, TalkingDataEAuthPhoneNumSeg[] phoneNumSeg) { Debug.Log("Unity Demo OnEAuthSuccess" + " requestId:" + requestId + " phoneNumber:" + phoneNumber); foreach (var seg in phoneNumSeg) { Debug.Log("phoneNumSeg:" + seg.begin + "-" + seg.end); } request_id = requestId; switch (type) { case TalkingDataEAuthType.TDEAuthTypeApplyCode: Debug.Log("申请认证码成功"); break; case TalkingDataEAuthType.TDEAuthTypeChecker: Debug.Log("此账号已认证"); break; case TalkingDataEAuthType.TDEAuthTypePhoneMatch: Debug.Log("此账号与手机号已绑定"); break; case TalkingDataEAuthType.TDEAuthTypeBind: Debug.Log("认证成功"); break; case TalkingDataEAuthType.TDEAuthTypeUnBind: Debug.Log("已成功解除绑定"); break; } }
void OnEAuthFailed(TalkingDataEAuthType type, int errorCode, string errorMessage) { Debug.Log("Unity Demo OnEAuthFailed" + " type:" + type + " errorCode:" + errorCode + " errorMessage:" + errorMessage); }