Skip to content

Commit

Permalink
Revert "统一commitCode方法参数"
Browse files Browse the repository at this point in the history
This reverts commit 6ca27a4.
  • Loading branch information
sainthsu committed Oct 13, 2016
1 parent 6ca27a4 commit c65ca49
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Unity3DForSMSSDK/Assets/Demo.cs
Expand Up @@ -72,7 +72,7 @@ void OnGUI ()
btnTop += btnHeight + 20 * scale;
if (GUI.Button(new Rect((Screen.width - btnWidth) / 2, btnTop, btnWidth, btnHeight), "CommitCode"))
{
smssdk.commitCode ("86", phone,code);
smssdk.commitCode (phone, "86",code);
}


Expand Down
Expand Up @@ -40,7 +40,7 @@ public override void getCode(CodeType type, string phoneNumber, string zone)
}


public override void commitCode(string zone, string phoneNumber, string code)
public override void commitCode(string phoneNumber, string zone, string code)
{
Debug.Log("AndroidImpl ==>>> commitCode" + zone + ";" + phoneNumber + ";" + code);
if(smssdk != null) {
Expand Down
4 changes: 2 additions & 2 deletions Unity3DForSMSSDK/Assets/Plugins/SMSSDK/SMSSDK.cs
Expand Up @@ -130,10 +130,10 @@ public void getCode (CodeType getCodeMethodType, string phoneNumber, string zone
/// <param name="verificationCode">Verification code.</param>
/// <param name="phoneNumber">Phone number.</param>
/// <param name="zone">Zone.</param>
public void commitCode (string zone, string phoneNumber,string verificationCode)
public void commitCode (string verificationCode, string phoneNumber,string zone)
{
if (smssdkImpl != null) {
smssdkImpl.commitCode (zone, phoneNumber, verificationCode);
smssdkImpl.commitCode (verificationCode, phoneNumber, zone);
}
}

Expand Down
2 changes: 1 addition & 1 deletion Unity3DForSMSSDK/Assets/Plugins/SMSSDK/SMSSDKInterface.cs
Expand Up @@ -47,7 +47,7 @@ public abstract class SMSSDKInterface
/// <param name="phoneNumber">Phone number.</param>
/// <param name="zone">Zone.</param>
/// <param name="verificationCode">Verification code.</param>
public abstract void commitCode (string zone, string phoneNumber, string verificationCode);
public abstract void commitCode (string phoneNumber, string zone, string verificationCode);



Expand Down

0 comments on commit c65ca49

Please sign in to comment.