Authored by Rong

commit by shell

@@ -263,7 +263,7 @@ @@ -263,7 +263,7 @@
263 <BeanShellPreProcessor guiclass="TestBeanGUI" testclass="BeanShellPreProcessor" testname="&#21069;&#32622;BeanShell" enabled="true"> 263 <BeanShellPreProcessor guiclass="TestBeanGUI" testclass="BeanShellPreProcessor" testname="&#21069;&#32622;BeanShell" enabled="true">
264 <stringProp name="TestPlan.comments"></stringProp> 264 <stringProp name="TestPlan.comments"></stringProp>
265 <boolProp name="resetInterpreter">false</boolProp> 265 <boolProp name="resetInterpreter">false</boolProp>
266 - <stringProp name="parameters">${address_id_submit} ${limit_product_sku} ${limit_product_skn} ${limit_product_code} ${uid_submit}</stringProp> 266 + <stringProp name="parameters">${SNCP} ${address_id_submit} ${limit_product_sku} ${limit_product_skn} ${limit_product_code} ${uid_submit}</stringProp>
267 <stringProp name="filename"></stringProp> 267 <stringProp name="filename"></stringProp>
268 <stringProp name="script">import java.security.MessageDigest; 268 <stringProp name="script">import java.security.MessageDigest;
269 import java.util.Random; 269 import java.util.Random;
@@ -272,8 +272,8 @@ String[] privateKeys = {&quot;fd4ad5fcfa0de589ef238c0e7331b585&quot;,&quot;a85bb @@ -272,8 +272,8 @@ String[] privateKeys = {&quot;fd4ad5fcfa0de589ef238c0e7331b585&quot;,&quot;a85bb
272 int rd = new Random().nextInt(2); 272 int rd = new Random().nextInt(2);
273 String clientType = clientTypes[rd]; 273 String clientType = clientTypes[rd];
274 String privateKey = privateKeys[rd]; 274 String privateKey = privateKeys[rd];
275 -String product_sku_list = &quot;[{\&quot;type\&quot;:\&quot;limitcode\&quot;,\&quot;buy_number\&quot;:1,\&quot;sku\&quot;:\&quot;&quot;+bsh.args[1]+&quot;\&quot;,\&quot;skn\&quot;:\&quot;&quot;+bsh.args[2]+&quot;\&quot;,\&quot;limitproductcode\&quot;:\&quot;&quot;+bsh.args[3]+&quot;\&quot;}]&quot;;  
276 -String req = &quot;address_id=&quot;+bsh.args[0]+&quot;&amp;app_version=5.8.0&amp;cart_type=ordinary&amp;client_type=&quot;+clientType+&quot;&amp;delivery_time=2&amp;delivery_way=1&amp;is_print_price=Y&amp;method=app.Shopping.easySubmit&amp;os_version=yohobuy:web&amp;payment_id=15&amp;payment_type=1&amp;private_key=&quot;+privateKey+&quot;&amp;product_sku_list=&quot;+product_sku_list+&quot;&amp;screen_size=720x1280&amp;session_key=6dcded32fa271b3473d8917f039979fd&amp;udid=yoho_pc&amp;uid=&quot;+bsh.args[4]+&quot;&amp;use_yoho_coin=0&amp;v=7&quot;; 275 +String product_sku_list = &quot;[{\&quot;type\&quot;:\&quot;limitcode\&quot;,\&quot;buy_number\&quot;:1,\&quot;sku\&quot;:\&quot;&quot;+bsh.args[2]+&quot;\&quot;,\&quot;skn\&quot;:\&quot;&quot;+bsh.args[3]+&quot;\&quot;,\&quot;limitproductcode\&quot;:\&quot;&quot;+bsh.args[4]+&quot;\&quot;}]&quot;;
  276 +String req = &quot;_sncp=&quot;+bsh.args[0]+&quot;&amp;address_id=&quot;+bsh.args[1]+&quot;&amp;app_version=5.8.0&amp;cart_type=ordinary&amp;client_type=&quot;+clientType+&quot;&amp;delivery_time=2&amp;delivery_way=1&amp;is_print_price=Y&amp;method=app.Shopping.easySubmit&amp;os_version=yohobuy:web&amp;payment_id=15&amp;payment_type=1&amp;private_key=&quot;+privateKey+&quot;&amp;product_sku_list=&quot;+product_sku_list+&quot;&amp;screen_size=720x1280&amp;session_key=6dcded32fa271b3473d8917f039979fd&amp;udid=yoho_pc&amp;uid=&quot;+bsh.args[5]+&quot;&amp;use_yoho_coin=0&amp;v=7&quot;;
277 MessageDigest md = MessageDigest.getInstance(&quot;MD5&quot;); 277 MessageDigest md = MessageDigest.getInstance(&quot;MD5&quot;);
278 byte[] btInput = req.getBytes(); 278 byte[] btInput = req.getBytes();
279 md.update(btInput); 279 md.update(btInput);
@@ -288,7 +288,7 @@ for(byte b : btResult){ @@ -288,7 +288,7 @@ for(byte b : btResult){
288 } 288 }
289 String md5 = sb.toString(); 289 String md5 = sb.toString();
290 product_sku_list=URLEncoder.encode(product_sku_list); 290 product_sku_list=URLEncoder.encode(product_sku_list);
291 -req = &quot;address_id=&quot;+bsh.args[0]+&quot;&amp;app_version=5.8.0&amp;cart_type=ordinary&amp;client_type=&quot;+clientType+&quot;&amp;delivery_time=2&amp;delivery_way=1&amp;is_print_price=Y&amp;method=app.Shopping.easySubmit&amp;os_version=yohobuy:web&amp;payment_id=15&amp;payment_type=1&amp;private_key=&quot;+privateKey+&quot;&amp;product_sku_list=&quot;+product_sku_list+&quot;&amp;screen_size=720x1280&amp;session_key=6dcded32fa271b3473d8917f039979fd&amp;udid=yoho_pc&amp;uid=&quot;+bsh.args[4]+&quot;&amp;use_yoho_coin=0&amp;v=7&quot;; 291 +req = &quot;_sncp=&quot;+bsh.args[0]+&quot;&amp;address_id=&quot;+bsh.args[1]+&quot;&amp;app_version=5.8.0&amp;cart_type=ordinary&amp;client_type=&quot;+clientType+&quot;&amp;delivery_time=2&amp;delivery_way=1&amp;is_print_price=Y&amp;method=app.Shopping.easySubmit&amp;os_version=yohobuy:web&amp;payment_id=15&amp;payment_type=1&amp;private_key=&quot;+privateKey+&quot;&amp;product_sku_list=&quot;+product_sku_list+&quot;&amp;screen_size=720x1280&amp;session_key=6dcded32fa271b3473d8917f039979fd&amp;udid=yoho_pc&amp;uid=&quot;+bsh.args[5]+&quot;&amp;use_yoho_coin=0&amp;v=7&quot;;
292 vars.put(&quot;searchValue&quot;,req+&quot;&amp;client_secret=&quot;+md5);</stringProp> 292 vars.put(&quot;searchValue&quot;,req+&quot;&amp;client_secret=&quot;+md5);</stringProp>
293 </BeanShellPreProcessor> 293 </BeanShellPreProcessor>
294 <hashTree/> 294 <hashTree/>