|
|
@@ -16,6 +16,7 @@ import com.huntersun.vkyes.etcopencard.project.api.bean.IFCode; |
|
|
|
import com.huntersun.vkyes.etcopencard.project.api.bean.ResultBean; |
|
|
|
import com.huntersun.vkyes.etcopencard.project.api.sm2.YdSm4Util; |
|
|
|
import com.huntersun.vkyes.etcopencard.project.tool.MyShared; |
|
|
|
import com.huntersun.vkyes.etcopencard.project.tool.Utils; |
|
|
|
import com.huntersun.vkyes.etcopencard.project.ui.activity.ContractActivity; |
|
|
|
import com.huntersun.vkyes.etcopencard.project.ui.activity.ydplatform.ydCode.YdCode; |
|
|
|
import com.huntersun.vkyes.etcopencard.project.utils.AESUtil; |
|
|
@@ -115,6 +116,35 @@ public class YDPlatformNewlyStep6Activity extends AppActivity { |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 支付状态查询 |
|
|
|
*/ |
|
|
|
private void payStatusQuery(String wechatSignNo){ |
|
|
|
HashMap<String,String> params = new HashMap<>(); |
|
|
|
params.put("agreementNum",wechatSignNo); |
|
|
|
params.put("filename",YdCode.YDCODE_PAYSTATUS_QUERY); |
|
|
|
MyRetrofit.ydNewInstance(this,true, "", params, new MyRetrofit.ReturnResult() { |
|
|
|
@Override |
|
|
|
public void onSuccess(ResultBean resultBean, ResultBean.BizContent bizContent) { |
|
|
|
LinkedTreeMap<String, Object> linkedTreeMap = JSON.parseObject(resultBean.getBizContent().toString(),LinkedTreeMap.class); |
|
|
|
if ("0".equals(linkedTreeMap.get("tradeStatus").toString())){ |
|
|
|
new Utils().showMessDialog(YDPlatformNewlyStep6Activity.this,"该订单未支付"); |
|
|
|
}else if ("1".equals(linkedTreeMap.get("tradeStatus").toString())){ |
|
|
|
new Utils().showMessDialog(YDPlatformNewlyStep6Activity.this,"该订单正在支付中"); |
|
|
|
}else if ("2".equals(linkedTreeMap.get("tradeStatus").toString())){ |
|
|
|
Intent intent = new Intent(YDPlatformNewlyStep6Activity.this, YDPlatformNewlySuccessActivity.class); |
|
|
|
startActivity(intent); |
|
|
|
finish(); |
|
|
|
}else if ("4".equals(linkedTreeMap.get("tradeStatus").toString())){ |
|
|
|
new Utils().showMessDialog(YDPlatformNewlyStep6Activity.this,"该订单已退款"); |
|
|
|
}else { |
|
|
|
new Utils().showMessDialog(YDPlatformNewlyStep6Activity.this,"未查询到支付信息"); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private View.OnClickListener imageListener = new View.OnClickListener() { |
|
|
|
|
|
|
|
@Override |
|
|
@@ -135,9 +165,7 @@ public class YDPlatformNewlyStep6Activity extends AppActivity { |
|
|
|
LinkedTreeMap<String,Object> linkedTreeMap = JSON.parseObject(resultBean.getBizContent().toString(),LinkedTreeMap.class); |
|
|
|
if (linkedTreeMap.get("status").toString().equals("1")){//正常 |
|
|
|
//签约检测 |
|
|
|
Intent intent = new Intent(YDPlatformNewlyStep6Activity.this, YDPlatformNewlySuccessActivity.class); |
|
|
|
startActivity(intent); |
|
|
|
finish(); |
|
|
|
payStatusQuery(wechatSignNo); |
|
|
|
}else if (linkedTreeMap.get("status").toString().equals("2")){//失效 |
|
|
|
toast("签约信息已失效"); |
|
|
|
}else { |