Commit 490439fe by DuJunLi

优化代码

parent 8f1209bd
......@@ -422,8 +422,12 @@ public class TrainingTools extends XMBaseTest {
body.put("accountType", "TRAINING");
body.put("current", 0);
body.put("size", 20);
body.put("tenantMemberCardId", tenantMemberCardId);
body.put("purchaseChannel",purchaseChannel);
if (!tenantMemberCardId.isEmpty()) {
body.put("tenantMemberCardId", tenantMemberCardId);
}
if (!purchaseChannel.isEmpty()) {
body.put("purchaseChannel", purchaseChannel);
}
body.put("memberCardStateList",memberCardStateList);
dataApi.doRequest(RequestType.JSON, dataparams, body.toString(), dataheadrs).assetsSuccess(true);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment