|
|
@@ -5,6 +5,7 @@ import android.content.Intent;
|
|
|
import android.net.Uri;
|
|
|
import android.os.Bundle;
|
|
|
import android.text.TextUtils;
|
|
|
+import android.util.Log;
|
|
|
|
|
|
import com.sheep.gamegroup.util.ApiJSONUtil;
|
|
|
import com.sheep.gamegroup.util.Jump2View;
|
|
|
@@ -33,16 +34,20 @@ public abstract class SheepWXPayEntryActivity extends Activity implements IWXAPI
|
|
|
@Override
|
|
|
public void onCreate(Bundle savedInstanceState) {
|
|
|
super.onCreate(savedInstanceState);
|
|
|
- setContentView(R.layout.pay_result);
|
|
|
+ if (!SheepApp.getInstance().getWxApi().handleIntent(getIntent(), this)) {
|
|
|
+ finish();
|
|
|
+ }
|
|
|
|
|
|
- SheepApp.getInstance().getWxApi().handleIntent(getIntent(), this);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
protected void onNewIntent(Intent intent) {
|
|
|
super.onNewIntent(intent);
|
|
|
setIntent(intent);
|
|
|
- SheepApp.getInstance().getWxApi().handleIntent(intent, this);
|
|
|
+ if (!SheepApp.getInstance().getWxApi().handleIntent(intent, this)) {
|
|
|
+ finish();
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
@@ -77,7 +82,7 @@ public abstract class SheepWXPayEntryActivity extends Activity implements IWXAPI
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public void onDestroy(){
|
|
|
+ public void onDestroy() {
|
|
|
SheepApp.getInstance().getWxApi().detach();
|
|
|
super.onDestroy();
|
|
|
}
|