Showing
1 changed file
with
16 additions
and
16 deletions
@@ -108,7 +108,7 @@ | @@ -108,7 +108,7 @@ | ||
108 | <BeanShellPreProcessor guiclass="TestBeanGUI" testclass="BeanShellPreProcessor" testname="前置BeanShell" enabled="true"> | 108 | <BeanShellPreProcessor guiclass="TestBeanGUI" testclass="BeanShellPreProcessor" testname="前置BeanShell" enabled="true"> |
109 | <stringProp name="TestPlan.comments"></stringProp> | 109 | <stringProp name="TestPlan.comments"></stringProp> |
110 | <boolProp name="resetInterpreter">false</boolProp> | 110 | <boolProp name="resetInterpreter">false</boolProp> |
111 | - <stringProp name="parameters">${activityId} ${uid}</stringProp> | 111 | + <stringProp name="parameters">${SNCP} ${activityId} ${uid}</stringProp> |
112 | <stringProp name="filename"></stringProp> | 112 | <stringProp name="filename"></stringProp> |
113 | <stringProp name="script">import java.security.MessageDigest; | 113 | <stringProp name="script">import java.security.MessageDigest; |
114 | import java.util.Random; | 114 | import java.util.Random; |
@@ -118,7 +118,7 @@ int rd = new Random().nextInt(2); | @@ -118,7 +118,7 @@ int rd = new Random().nextInt(2); | ||
118 | String clientType = clientTypes[rd]; | 118 | String clientType = clientTypes[rd]; |
119 | String privateKey = privateKeys[rd]; | 119 | String privateKey = privateKeys[rd]; |
120 | 120 | ||
121 | -String req = "activityId="+bsh.args[0]+"&app_version=2.3.2&business_line=miniapp&client_type="+clientType+"&method=app.collage.productList&os_version=6.6.1&private_key="+privateKey+"&screen_size=375x603&session_key=57760afa8df1c8fa854f05c95f147e50&source_type=wechat&udid=a937bd3fee40ae778d8aa76f1bb8d8c2&uid="+bsh.args[1]+"&user_source=wechat&v=7"; | 121 | +String req = "_sncp="+bsh.args[0]+"&activityId="+bsh.args[1]+"&app_version=2.3.2&business_line=miniapp&client_type="+clientType+"&method=app.collage.productList&os_version=6.6.1&private_key="+privateKey+"&screen_size=375x603&session_key=57760afa8df1c8fa854f05c95f147e50&source_type=wechat&udid=a937bd3fee40ae778d8aa76f1bb8d8c2&uid="+bsh.args[2]+"&user_source=wechat&v=7"; |
122 | MessageDigest md = MessageDigest.getInstance("MD5"); | 122 | MessageDigest md = MessageDigest.getInstance("MD5"); |
123 | byte[] btInput = req.getBytes(); | 123 | byte[] btInput = req.getBytes(); |
124 | md.update(btInput); | 124 | md.update(btInput); |
@@ -206,7 +206,7 @@ vars.put("searchValue",req+"&client_secret="+md5);</stri | @@ -206,7 +206,7 @@ vars.put("searchValue",req+"&client_secret="+md5);</stri | ||
206 | <BeanShellPreProcessor guiclass="TestBeanGUI" testclass="BeanShellPreProcessor" testname="前置BeanShell" enabled="true"> | 206 | <BeanShellPreProcessor guiclass="TestBeanGUI" testclass="BeanShellPreProcessor" testname="前置BeanShell" enabled="true"> |
207 | <stringProp name="TestPlan.comments"></stringProp> | 207 | <stringProp name="TestPlan.comments"></stringProp> |
208 | <boolProp name="resetInterpreter">false</boolProp> | 208 | <boolProp name="resetInterpreter">false</boolProp> |
209 | - <stringProp name="parameters">${activityId} ${uid}</stringProp> | 209 | + <stringProp name="parameters">${SNCP} ${activityId} ${uid}</stringProp> |
210 | <stringProp name="filename"></stringProp> | 210 | <stringProp name="filename"></stringProp> |
211 | <stringProp name="script">import java.security.MessageDigest; | 211 | <stringProp name="script">import java.security.MessageDigest; |
212 | import java.util.Random; | 212 | import java.util.Random; |
@@ -216,7 +216,7 @@ int rd = new Random().nextInt(2); | @@ -216,7 +216,7 @@ int rd = new Random().nextInt(2); | ||
216 | String clientType = clientTypes[rd]; | 216 | String clientType = clientTypes[rd]; |
217 | String privateKey = privateKeys[rd]; | 217 | String privateKey = privateKeys[rd]; |
218 | 218 | ||
219 | -String req = "activityId="+bsh.args[0]+"&app_version=2.3.2&business_line=miniapp&client_type="+clientType+"&method=app.activity.getGroups&os_version=6.6.1&private_key="+privateKey+"&screen_size=375x603&session_key=57760afa8df1c8fa854f05c95f147e50&source_type=wechat&udid=a937bd3fee40ae778d8aa76f1bb8d8c2&uid="+bsh.args[1]+"&user_source=wechat&v=7"; | 219 | +String req = "_sncp="+bsh.args[0]+"&activityId="+bsh.args[1]+"&app_version=2.3.2&business_line=miniapp&client_type="+clientType+"&method=app.activity.getGroups&os_version=6.6.1&private_key="+privateKey+"&screen_size=375x603&session_key=57760afa8df1c8fa854f05c95f147e50&source_type=wechat&udid=a937bd3fee40ae778d8aa76f1bb8d8c2&uid="+bsh.args[2]+"&user_source=wechat&v=7"; |
220 | MessageDigest md = MessageDigest.getInstance("MD5"); | 220 | MessageDigest md = MessageDigest.getInstance("MD5"); |
221 | byte[] btInput = req.getBytes(); | 221 | byte[] btInput = req.getBytes(); |
222 | md.update(btInput); | 222 | md.update(btInput); |
@@ -304,7 +304,7 @@ vars.put("searchValue",req+"&client_secret="+md5);</stri | @@ -304,7 +304,7 @@ vars.put("searchValue",req+"&client_secret="+md5);</stri | ||
304 | <BeanShellPreProcessor guiclass="TestBeanGUI" testclass="BeanShellPreProcessor" testname="前置BeanShell" enabled="true"> | 304 | <BeanShellPreProcessor guiclass="TestBeanGUI" testclass="BeanShellPreProcessor" testname="前置BeanShell" enabled="true"> |
305 | <stringProp name="TestPlan.comments"></stringProp> | 305 | <stringProp name="TestPlan.comments"></stringProp> |
306 | <boolProp name="resetInterpreter">false</boolProp> | 306 | <boolProp name="resetInterpreter">false</boolProp> |
307 | - <stringProp name="parameters">${product_skn} ${uid}</stringProp> | 307 | + <stringProp name="parameters">${SNCP} ${product_skn} ${uid}</stringProp> |
308 | <stringProp name="filename"></stringProp> | 308 | <stringProp name="filename"></stringProp> |
309 | <stringProp name="script">import java.security.MessageDigest; | 309 | <stringProp name="script">import java.security.MessageDigest; |
310 | import java.util.Random; | 310 | import java.util.Random; |
@@ -314,7 +314,7 @@ int rd = new Random().nextInt(2); | @@ -314,7 +314,7 @@ int rd = new Random().nextInt(2); | ||
314 | String clientType = clientTypes[rd]; | 314 | String clientType = clientTypes[rd]; |
315 | String privateKey = privateKeys[rd]; | 315 | String privateKey = privateKeys[rd]; |
316 | 316 | ||
317 | -String req = "app_version=2.3.2&business_line=miniapp&client_type="+clientType+"&method=app.product.data&os_version=6.6.1&private_key="+privateKey+"&product_skn="+bsh.args[0]+"&screen_size=375x603&session_key=57760afa8df1c8fa854f05c95f147e50&source_type=wechat&udid=a937bd3fee40ae778d8aa76f1bb8d8c2&uid="+bsh.args[1]+"&user_source=wechat&v=7"; | 317 | +String req = "_sncp="+bsh.args[0]+"&app_version=2.3.2&business_line=miniapp&client_type="+clientType+"&method=app.product.data&os_version=6.6.1&private_key="+privateKey+"&product_skn="+bsh.args[1]+"&screen_size=375x603&session_key=57760afa8df1c8fa854f05c95f147e50&source_type=wechat&udid=a937bd3fee40ae778d8aa76f1bb8d8c2&uid="+bsh.args[2]+"&user_source=wechat&v=7"; |
318 | MessageDigest md = MessageDigest.getInstance("MD5"); | 318 | MessageDigest md = MessageDigest.getInstance("MD5"); |
319 | byte[] btInput = req.getBytes(); | 319 | byte[] btInput = req.getBytes(); |
320 | md.update(btInput); | 320 | md.update(btInput); |
@@ -402,7 +402,7 @@ vars.put("searchValue",req+"&client_secret="+md5);</stri | @@ -402,7 +402,7 @@ vars.put("searchValue",req+"&client_secret="+md5);</stri | ||
402 | <BeanShellPreProcessor guiclass="TestBeanGUI" testclass="BeanShellPreProcessor" testname="前置BeanShell" enabled="true"> | 402 | <BeanShellPreProcessor guiclass="TestBeanGUI" testclass="BeanShellPreProcessor" testname="前置BeanShell" enabled="true"> |
403 | <stringProp name="TestPlan.comments"></stringProp> | 403 | <stringProp name="TestPlan.comments"></stringProp> |
404 | <boolProp name="resetInterpreter">false</boolProp> | 404 | <boolProp name="resetInterpreter">false</boolProp> |
405 | - <stringProp name="parameters">${product_skn} ${uid}</stringProp> | 405 | + <stringProp name="parameters">${SNCP} ${product_skn} ${uid}</stringProp> |
406 | <stringProp name="filename"></stringProp> | 406 | <stringProp name="filename"></stringProp> |
407 | <stringProp name="script">import java.security.MessageDigest; | 407 | <stringProp name="script">import java.security.MessageDigest; |
408 | import java.util.Random; | 408 | import java.util.Random; |
@@ -412,7 +412,7 @@ int rd = new Random().nextInt(2); | @@ -412,7 +412,7 @@ int rd = new Random().nextInt(2); | ||
412 | String clientType = clientTypes[rd]; | 412 | String clientType = clientTypes[rd]; |
413 | String privateKey = privateKeys[rd]; | 413 | String privateKey = privateKeys[rd]; |
414 | 414 | ||
415 | -String req = "app_version=2.3.2&business_line=miniapp&client_type="+clientType+"&method=smallapp.product.intro&os_version=6.6.1&private_key="+privateKey+"&productskn="+bsh.args[0]+"&screen_size=375x603&session_key=57760afa8df1c8fa854f05c95f147e50&source_type=wechat&udid=a937bd3fee40ae778d8aa76f1bb8d8c2&uid="+bsh.args[1]+"&user_source=wechat&v=7"; | 415 | +String req = "_sncp="+bsh.args[0]+"&app_version=2.3.2&business_line=miniapp&client_type="+clientType+"&method=smallapp.product.intro&os_version=6.6.1&private_key="+privateKey+"&productskn="+bsh.args[1]+"&screen_size=375x603&session_key=57760afa8df1c8fa854f05c95f147e50&source_type=wechat&udid=a937bd3fee40ae778d8aa76f1bb8d8c2&uid="+bsh.args[2]+"&user_source=wechat&v=7"; |
416 | MessageDigest md = MessageDigest.getInstance("MD5"); | 416 | MessageDigest md = MessageDigest.getInstance("MD5"); |
417 | byte[] btInput = req.getBytes(); | 417 | byte[] btInput = req.getBytes(); |
418 | md.update(btInput); | 418 | md.update(btInput); |
@@ -500,7 +500,7 @@ vars.put("searchValue",req+"&client_secret="+md5);</stri | @@ -500,7 +500,7 @@ vars.put("searchValue",req+"&client_secret="+md5);</stri | ||
500 | <BeanShellPreProcessor guiclass="TestBeanGUI" testclass="BeanShellPreProcessor" testname="前置BeanShell" enabled="true"> | 500 | <BeanShellPreProcessor guiclass="TestBeanGUI" testclass="BeanShellPreProcessor" testname="前置BeanShell" enabled="true"> |
501 | <stringProp name="TestPlan.comments"></stringProp> | 501 | <stringProp name="TestPlan.comments"></stringProp> |
502 | <boolProp name="resetInterpreter">false</boolProp> | 502 | <boolProp name="resetInterpreter">false</boolProp> |
503 | - <stringProp name="parameters">${product_skn} ${uid}</stringProp> | 503 | + <stringProp name="parameters">${SNCP} ${product_skn} ${uid}</stringProp> |
504 | <stringProp name="filename"></stringProp> | 504 | <stringProp name="filename"></stringProp> |
505 | <stringProp name="script">import java.security.MessageDigest; | 505 | <stringProp name="script">import java.security.MessageDigest; |
506 | import java.util.Random; | 506 | import java.util.Random; |
@@ -510,7 +510,7 @@ int rd = new Random().nextInt(2); | @@ -510,7 +510,7 @@ int rd = new Random().nextInt(2); | ||
510 | String clientType = clientTypes[rd]; | 510 | String clientType = clientTypes[rd]; |
511 | String privateKey = privateKeys[rd]; | 511 | String privateKey = privateKeys[rd]; |
512 | 512 | ||
513 | -String req = "app_version=2.3.2&business_line=miniapp&client_type="+clientType+"&coupon_limit_status=0&method=app.product.supportService&os_version=6.6.1&private_key="+privateKey+"&product_skn="+bsh.args[0]+"&screen_size=375x603&session_key=57760afa8df1c8fa854f05c95f147e50&source_type=wechat&udid=a937bd3fee40ae778d8aa76f1bb8d8c2&uid="+bsh.args[1]+"&user_source=wechat&v=7"; | 513 | +String req = "_sncp="+bsh.args[0]+"&app_version=2.3.2&business_line=miniapp&client_type="+clientType+"&coupon_limit_status=0&method=app.product.supportService&os_version=6.6.1&private_key="+privateKey+"&product_skn="+bsh.args[1]+"&screen_size=375x603&session_key=57760afa8df1c8fa854f05c95f147e50&source_type=wechat&udid=a937bd3fee40ae778d8aa76f1bb8d8c2&uid="+bsh.args[2]+"&user_source=wechat&v=7"; |
514 | MessageDigest md = MessageDigest.getInstance("MD5"); | 514 | MessageDigest md = MessageDigest.getInstance("MD5"); |
515 | byte[] btInput = req.getBytes(); | 515 | byte[] btInput = req.getBytes(); |
516 | md.update(btInput); | 516 | md.update(btInput); |
@@ -598,7 +598,7 @@ vars.put("searchValue",req+"&client_secret="+md5);</stri | @@ -598,7 +598,7 @@ vars.put("searchValue",req+"&client_secret="+md5);</stri | ||
598 | <BeanShellPreProcessor guiclass="TestBeanGUI" testclass="BeanShellPreProcessor" testname="前置BeanShell" enabled="true"> | 598 | <BeanShellPreProcessor guiclass="TestBeanGUI" testclass="BeanShellPreProcessor" testname="前置BeanShell" enabled="true"> |
599 | <stringProp name="TestPlan.comments"></stringProp> | 599 | <stringProp name="TestPlan.comments"></stringProp> |
600 | <boolProp name="resetInterpreter">false</boolProp> | 600 | <boolProp name="resetInterpreter">false</boolProp> |
601 | - <stringProp name="parameters">${product_skn} ${uid}</stringProp> | 601 | + <stringProp name="parameters">${SNCP} ${product_skn} ${uid}</stringProp> |
602 | <stringProp name="filename"></stringProp> | 602 | <stringProp name="filename"></stringProp> |
603 | <stringProp name="script">import java.security.MessageDigest; | 603 | <stringProp name="script">import java.security.MessageDigest; |
604 | import java.util.Random; | 604 | import java.util.Random; |
@@ -608,7 +608,7 @@ int rd = new Random().nextInt(2); | @@ -608,7 +608,7 @@ int rd = new Random().nextInt(2); | ||
608 | String clientType = clientTypes[rd]; | 608 | String clientType = clientTypes[rd]; |
609 | String privateKey = privateKeys[rd]; | 609 | String privateKey = privateKeys[rd]; |
610 | 610 | ||
611 | -String req = "app_version=2.3.2&business_line=miniapp&client_type="+clientType+"&method=app.Shopping.count&os_version=6.6.1&private_key="+privateKey+"&product_skn="+bsh.args[0]+"&screen_size=375x603&session_key=57760afa8df1c8fa854f05c95f147e50&source_type=wechat&udid=a937bd3fee40ae778d8aa76f1bb8d8c2&uid="+bsh.args[1]+"&user_source=wechat&v=7"; | 611 | +String req = "_sncp="+bsh.args[0]+"&app_version=2.3.2&business_line=miniapp&client_type="+clientType+"&method=app.Shopping.count&os_version=6.6.1&private_key="+privateKey+"&product_skn="+bsh.args[1]+"&screen_size=375x603&session_key=57760afa8df1c8fa854f05c95f147e50&source_type=wechat&udid=a937bd3fee40ae778d8aa76f1bb8d8c2&uid="+bsh.args[2]+"&user_source=wechat&v=7"; |
612 | MessageDigest md = MessageDigest.getInstance("MD5"); | 612 | MessageDigest md = MessageDigest.getInstance("MD5"); |
613 | byte[] btInput = req.getBytes(); | 613 | byte[] btInput = req.getBytes(); |
614 | md.update(btInput); | 614 | md.update(btInput); |
@@ -696,7 +696,7 @@ vars.put("searchValue",req+"&client_secret="+md5);</stri | @@ -696,7 +696,7 @@ vars.put("searchValue",req+"&client_secret="+md5);</stri | ||
696 | <BeanShellPreProcessor guiclass="TestBeanGUI" testclass="BeanShellPreProcessor" testname="前置BeanShell" enabled="true"> | 696 | <BeanShellPreProcessor guiclass="TestBeanGUI" testclass="BeanShellPreProcessor" testname="前置BeanShell" enabled="true"> |
697 | <stringProp name="TestPlan.comments"></stringProp> | 697 | <stringProp name="TestPlan.comments"></stringProp> |
698 | <boolProp name="resetInterpreter">false</boolProp> | 698 | <boolProp name="resetInterpreter">false</boolProp> |
699 | - <stringProp name="parameters">${activityId} ${product_skn} ${uid}</stringProp> | 699 | + <stringProp name="parameters">${SNCP} ${activityId} ${product_skn} ${uid}</stringProp> |
700 | <stringProp name="filename"></stringProp> | 700 | <stringProp name="filename"></stringProp> |
701 | <stringProp name="script">import java.security.MessageDigest; | 701 | <stringProp name="script">import java.security.MessageDigest; |
702 | import java.util.Random; | 702 | import java.util.Random; |
@@ -706,7 +706,7 @@ int rd = new Random().nextInt(2); | @@ -706,7 +706,7 @@ int rd = new Random().nextInt(2); | ||
706 | String clientType = clientTypes[rd]; | 706 | String clientType = clientTypes[rd]; |
707 | String privateKey = privateKeys[rd]; | 707 | String privateKey = privateKeys[rd]; |
708 | 708 | ||
709 | -String req = "activityId="+bsh.args[0]+"&app_version=2.3.2&business_line=miniapp&client_type="+clientType+"&method=app.collage.productInfo&os_version=6.6.1&private_key="+privateKey+"&productSkn="+bsh.args[1]+"&screen_size=375x603&session_key=57760afa8df1c8fa854f05c95f147e50&source_type=wechat&udid=a937bd3fee40ae778d8aa76f1bb8d8c2&uid="+bsh.args[2]+"&user_source=wechat&v=7"; | 709 | +String req = "_sncp="+bsh.args[0]+"&activityId="+bsh.args[1]+"&app_version=2.3.2&business_line=miniapp&client_type="+clientType+"&method=app.collage.productInfo&os_version=6.6.1&private_key="+privateKey+"&productSkn="+bsh.args[2]+"&screen_size=375x603&session_key=57760afa8df1c8fa854f05c95f147e50&source_type=wechat&udid=a937bd3fee40ae778d8aa76f1bb8d8c2&uid="+bsh.args[3]+"&user_source=wechat&v=7"; |
710 | MessageDigest md = MessageDigest.getInstance("MD5"); | 710 | MessageDigest md = MessageDigest.getInstance("MD5"); |
711 | byte[] btInput = req.getBytes(); | 711 | byte[] btInput = req.getBytes(); |
712 | md.update(btInput); | 712 | md.update(btInput); |
@@ -794,7 +794,7 @@ vars.put("searchValue",req+"&client_secret="+md5);</stri | @@ -794,7 +794,7 @@ vars.put("searchValue",req+"&client_secret="+md5);</stri | ||
794 | <BeanShellPreProcessor guiclass="TestBeanGUI" testclass="BeanShellPreProcessor" testname="前置BeanShell" enabled="true"> | 794 | <BeanShellPreProcessor guiclass="TestBeanGUI" testclass="BeanShellPreProcessor" testname="前置BeanShell" enabled="true"> |
795 | <stringProp name="TestPlan.comments"></stringProp> | 795 | <stringProp name="TestPlan.comments"></stringProp> |
796 | <boolProp name="resetInterpreter">false</boolProp> | 796 | <boolProp name="resetInterpreter">false</boolProp> |
797 | - <stringProp name="parameters">${activityId} ${product_sku} ${uid}</stringProp> | 797 | + <stringProp name="parameters">${SNCP} ${activityId} ${product_sku} ${uid}</stringProp> |
798 | <stringProp name="filename"></stringProp> | 798 | <stringProp name="filename"></stringProp> |
799 | <stringProp name="script">import java.security.MessageDigest; | 799 | <stringProp name="script">import java.security.MessageDigest; |
800 | import java.util.Random; | 800 | import java.util.Random; |
@@ -804,7 +804,7 @@ int rd = new Random().nextInt(2); | @@ -804,7 +804,7 @@ int rd = new Random().nextInt(2); | ||
804 | String clientType = clientTypes[rd]; | 804 | String clientType = clientTypes[rd]; |
805 | String privateKey = privateKeys[rd]; | 805 | String privateKey = privateKeys[rd]; |
806 | 806 | ||
807 | -String req = "activity_id="+bsh.args[0]+"&app_version=2.3.2&business_line=miniapp&buy_number=1&client_type="+clientType+"&group_no=&is_support_apple_pay=N&method=app.GroupBuy.payment&os_version=6.6.1&private_key="+privateKey+"&product_sku="+bsh.args[1]+"&screen_size=375x603&session_key=57760afa8df1c8fa854f05c95f147e50&source_type=wechat&udid=a937bd3fee40ae778d8aa76f1bb8d8c2&uid="+bsh.args[2]+"&user_source=wechat&v=7&yoho_coin_mode=0"; | 807 | +String req = "_sncp="+bsh.args[0]+"&activity_id="+bsh.args[1]+"&app_version=2.3.2&business_line=miniapp&buy_number=1&client_type="+clientType+"&group_no=&is_support_apple_pay=N&method=app.GroupBuy.payment&os_version=6.6.1&private_key="+privateKey+"&product_sku="+bsh.args[2]+"&screen_size=375x603&session_key=57760afa8df1c8fa854f05c95f147e50&source_type=wechat&udid=a937bd3fee40ae778d8aa76f1bb8d8c2&uid="+bsh.args[3]+"&user_source=wechat&v=7&yoho_coin_mode=0"; |
808 | MessageDigest md = MessageDigest.getInstance("MD5"); | 808 | MessageDigest md = MessageDigest.getInstance("MD5"); |
809 | byte[] btInput = req.getBytes(); | 809 | byte[] btInput = req.getBytes(); |
810 | md.update(btInput); | 810 | md.update(btInput); |
-
Please register or login to post a comment