Authored by Rong

commit by shell

@@ -119,7 +119,7 @@ @@ -119,7 +119,7 @@
119 <BeanShellPreProcessor guiclass="TestBeanGUI" testclass="BeanShellPreProcessor" testname="&#21069;&#32622;BeanShell" enabled="true"> 119 <BeanShellPreProcessor guiclass="TestBeanGUI" testclass="BeanShellPreProcessor" testname="&#21069;&#32622;BeanShell" enabled="true">
120 <stringProp name="TestPlan.comments"></stringProp> 120 <stringProp name="TestPlan.comments"></stringProp>
121 <boolProp name="resetInterpreter">false</boolProp> 121 <boolProp name="resetInterpreter">false</boolProp>
122 - <stringProp name="parameters">${limit_product_sku} ${limit_product_code} ${limit_product_skn} ${uid_submit}</stringProp> 122 + <stringProp name="parameters">${SNCP} ${limit_product_sku} ${limit_product_code} ${limit_product_skn} ${uid_submit}</stringProp>
123 <stringProp name="filename"></stringProp> 123 <stringProp name="filename"></stringProp>
124 <stringProp name="script">import java.security.MessageDigest; 124 <stringProp name="script">import java.security.MessageDigest;
125 import java.util.Random; 125 import java.util.Random;
@@ -128,8 +128,8 @@ String[] privateKeys = {&quot;fd4ad5fcfa0de589ef238c0e7331b585&quot;,&quot;a85bb @@ -128,8 +128,8 @@ String[] privateKeys = {&quot;fd4ad5fcfa0de589ef238c0e7331b585&quot;,&quot;a85bb
128 int rd = new Random().nextInt(2); 128 int rd = new Random().nextInt(2);
129 String clientType = clientTypes[rd]; 129 String clientType = clientTypes[rd];
130 String privateKey = privateKeys[rd]; 130 String privateKey = privateKeys[rd];
131 -String product_sku_list = &quot;[{\&quot;sku\&quot;:&quot;+bsh.args[0]+&quot;,\&quot;buy_number\&quot;:1,\&quot;type\&quot;:\&quot;limitcode\&quot;,\&quot;limitproductcode\&quot;:\&quot;&quot;+bsh.args[1]+&quot;\&quot;,\&quot;skn\&quot;:&quot;+bsh.args[2]+&quot;}]&quot;;  
132 -String req = &quot;app_version=6.0.0&amp;cart_type=ordinary&amp;client_type=&quot;+clientType+&quot;&amp;fromPage=iFP_ProductDetail&amp;is_support_apple_pay=N&amp;method=app.Shopping.easyPayment&amp;os_version=10.3.2&amp;physical_channel=1&amp;private_key=&quot;+privateKey+&quot;&amp;product_sku_list=&quot;+product_sku_list+&quot;&amp;screen_size=375x667&amp;session_key=56839fa66dc3f1e58f8f3d9a7d12774c&amp;udid=4d08039b26ebafdea8f35336319bfdcd634029d3&amp;uid=&quot;+bsh.args[3]+&quot;&amp;v=7&amp;yoho_bill_term=0&amp;yoho_coin_mode=0&quot;; 131 +String product_sku_list = &quot;[{\&quot;sku\&quot;:&quot;+bsh.args[1]+&quot;,\&quot;buy_number\&quot;:1,\&quot;type\&quot;:\&quot;limitcode\&quot;,\&quot;limitproductcode\&quot;:\&quot;&quot;+bsh.args[2]+&quot;\&quot;,\&quot;skn\&quot;:&quot;+bsh.args[3]+&quot;}]&quot;;
  132 +String req = &quot;_sncp=&quot;+bsh.args[0]+&quot;&amp;app_version=6.0.0&amp;cart_type=ordinary&amp;client_type=&quot;+clientType+&quot;&amp;fromPage=iFP_ProductDetail&amp;is_support_apple_pay=N&amp;method=app.Shopping.easyPayment&amp;os_version=10.3.2&amp;physical_channel=1&amp;private_key=&quot;+privateKey+&quot;&amp;product_sku_list=&quot;+product_sku_list+&quot;&amp;screen_size=375x667&amp;session_key=56839fa66dc3f1e58f8f3d9a7d12774c&amp;udid=4d08039b26ebafdea8f35336319bfdcd634029d3&amp;uid=&quot;+bsh.args[4]+&quot;&amp;v=7&amp;yoho_bill_term=0&amp;yoho_coin_mode=0&quot;;
133 MessageDigest md = MessageDigest.getInstance(&quot;MD5&quot;); 133 MessageDigest md = MessageDigest.getInstance(&quot;MD5&quot;);
134 byte[] btInput = req.getBytes(); 134 byte[] btInput = req.getBytes();
135 md.update(btInput); 135 md.update(btInput);
@@ -144,7 +144,7 @@ for(byte b : btResult){ @@ -144,7 +144,7 @@ for(byte b : btResult){
144 } 144 }
145 String md5 = sb.toString(); 145 String md5 = sb.toString();
146 product_sku_list=URLEncoder.encode(product_sku_list); 146 product_sku_list=URLEncoder.encode(product_sku_list);
147 -req = &quot;app_version=6.0.0&amp;cart_type=ordinary&amp;client_type=&quot;+clientType+&quot;&amp;fromPage=iFP_ProductDetail&amp;is_support_apple_pay=N&amp;method=app.Shopping.easyPayment&amp;os_version=10.3.2&amp;physical_channel=1&amp;private_key=&quot;+privateKey+&quot;&amp;product_sku_list=&quot;+product_sku_list+&quot;&amp;screen_size=375x667&amp;session_key=56839fa66dc3f1e58f8f3d9a7d12774c&amp;udid=4d08039b26ebafdea8f35336319bfdcd634029d3&amp;uid=&quot;+bsh.args[3]+&quot;&amp;v=7&amp;yoho_bill_term=0&amp;yoho_coin_mode=0&quot;; 147 +req = &quot;_sncp=&quot;+bsh.args[0]+&quot;&amp;app_version=6.0.0&amp;cart_type=ordinary&amp;client_type=&quot;+clientType+&quot;&amp;fromPage=iFP_ProductDetail&amp;is_support_apple_pay=N&amp;method=app.Shopping.easyPayment&amp;os_version=10.3.2&amp;physical_channel=1&amp;private_key=&quot;+privateKey+&quot;&amp;product_sku_list=&quot;+product_sku_list+&quot;&amp;screen_size=375x667&amp;session_key=56839fa66dc3f1e58f8f3d9a7d12774c&amp;udid=4d08039b26ebafdea8f35336319bfdcd634029d3&amp;uid=&quot;+bsh.args[4]+&quot;&amp;v=7&amp;yoho_bill_term=0&amp;yoho_coin_mode=0&quot;;
148 vars.put(&quot;searchValue&quot;,req+&quot;&amp;client_secret=&quot;+md5);</stringProp> 148 vars.put(&quot;searchValue&quot;,req+&quot;&amp;client_secret=&quot;+md5);</stringProp>
149 </BeanShellPreProcessor> 149 </BeanShellPreProcessor>
150 <hashTree/> 150 <hashTree/>
@@ -217,7 +217,7 @@ vars.put(&quot;searchValue&quot;,req+&quot;&amp;client_secret=&quot;+md5);</stri @@ -217,7 +217,7 @@ vars.put(&quot;searchValue&quot;,req+&quot;&amp;client_secret=&quot;+md5);</stri
217 <BeanShellPreProcessor guiclass="TestBeanGUI" testclass="BeanShellPreProcessor" testname="&#21069;&#32622;BeanShell" enabled="true"> 217 <BeanShellPreProcessor guiclass="TestBeanGUI" testclass="BeanShellPreProcessor" testname="&#21069;&#32622;BeanShell" enabled="true">
218 <stringProp name="TestPlan.comments"></stringProp> 218 <stringProp name="TestPlan.comments"></stringProp>
219 <boolProp name="resetInterpreter">false</boolProp> 219 <boolProp name="resetInterpreter">false</boolProp>
220 - <stringProp name="parameters">${limit_product_sku} ${limit_product_code} ${limit_product_skn} ${uid_submit}</stringProp> 220 + <stringProp name="parameters">${SNCP} ${limit_product_sku} ${limit_product_code} ${limit_product_skn} ${uid_submit}</stringProp>
221 <stringProp name="filename"></stringProp> 221 <stringProp name="filename"></stringProp>
222 <stringProp name="script">import java.security.MessageDigest; 222 <stringProp name="script">import java.security.MessageDigest;
223 import java.util.Random; 223 import java.util.Random;
@@ -226,8 +226,8 @@ String[] privateKeys = {&quot;fd4ad5fcfa0de589ef238c0e7331b585&quot;,&quot;a85bb @@ -226,8 +226,8 @@ String[] privateKeys = {&quot;fd4ad5fcfa0de589ef238c0e7331b585&quot;,&quot;a85bb
226 int rd = new Random().nextInt(2); 226 int rd = new Random().nextInt(2);
227 String clientType = clientTypes[rd]; 227 String clientType = clientTypes[rd];
228 String privateKey = privateKeys[rd]; 228 String privateKey = privateKeys[rd];
229 -String product_sku_list = &quot;[{\&quot;sku\&quot;:&quot;+bsh.args[0]+&quot;,\&quot;buy_number\&quot;:1,\&quot;type\&quot;:\&quot;limitcode\&quot;,\&quot;limitproductcode\&quot;:\&quot;&quot;+bsh.args[1]+&quot;\&quot;,\&quot;skn\&quot;:&quot;+bsh.args[2]+&quot;}]&quot;;  
230 -String req = &quot;app_version=6.0.0&amp;cart_type=ordinary&amp;client_type=&quot;+clientType+&quot;&amp;delivery_way=2&amp;fromPage=iFP_Payment&amp;method=app.Shopping.easyCompute&amp;os_version=10.3.2&amp;payment_type=1&amp;physical_channel=1&amp;private_key=&quot;+privateKey+&quot;&amp;product_sku_list=&quot;+product_sku_list+&quot;&amp;screen_size=375x667&amp;session_key=56839fa66dc3f1e58f8f3d9a7d12774c&amp;udid=4d08039b26ebafdea8f35336319bfdcd634029d3&amp;uid=&quot;+bsh.args[3]+&quot;&amp;v=7&amp;yoho_bill_term=0&quot;; 229 +String product_sku_list = &quot;[{\&quot;sku\&quot;:&quot;+bsh.args[1]+&quot;,\&quot;buy_number\&quot;:1,\&quot;type\&quot;:\&quot;limitcode\&quot;,\&quot;limitproductcode\&quot;:\&quot;&quot;+bsh.args[2]+&quot;\&quot;,\&quot;skn\&quot;:&quot;+bsh.args[3]+&quot;}]&quot;;
  230 +String req = &quot;_sncp=&quot;+bsh.args[0]+&quot;&amp;app_version=6.0.0&amp;cart_type=ordinary&amp;client_type=&quot;+clientType+&quot;&amp;delivery_way=2&amp;fromPage=iFP_Payment&amp;method=app.Shopping.easyCompute&amp;os_version=10.3.2&amp;payment_type=1&amp;physical_channel=1&amp;private_key=&quot;+privateKey+&quot;&amp;product_sku_list=&quot;+product_sku_list+&quot;&amp;screen_size=375x667&amp;session_key=56839fa66dc3f1e58f8f3d9a7d12774c&amp;udid=4d08039b26ebafdea8f35336319bfdcd634029d3&amp;uid=&quot;+bsh.args[4]+&quot;&amp;v=7&amp;yoho_bill_term=0&quot;;
231 MessageDigest md = MessageDigest.getInstance(&quot;MD5&quot;); 231 MessageDigest md = MessageDigest.getInstance(&quot;MD5&quot;);
232 byte[] btInput = req.getBytes(); 232 byte[] btInput = req.getBytes();
233 md.update(btInput); 233 md.update(btInput);
@@ -242,7 +242,7 @@ for(byte b : btResult){ @@ -242,7 +242,7 @@ for(byte b : btResult){
242 } 242 }
243 String md5 = sb.toString(); 243 String md5 = sb.toString();
244 product_sku_list=URLEncoder.encode(product_sku_list); 244 product_sku_list=URLEncoder.encode(product_sku_list);
245 -req = &quot;app_version=6.0.0&amp;cart_type=ordinary&amp;client_type=&quot;+clientType+&quot;&amp;delivery_way=2&amp;fromPage=iFP_Payment&amp;method=app.Shopping.easyCompute&amp;os_version=10.3.2&amp;payment_type=1&amp;physical_channel=1&amp;private_key=&quot;+privateKey+&quot;&amp;product_sku_list=&quot;+product_sku_list+&quot;&amp;screen_size=375x667&amp;session_key=56839fa66dc3f1e58f8f3d9a7d12774c&amp;udid=4d08039b26ebafdea8f35336319bfdcd634029d3&amp;uid=&quot;+bsh.args[3]+&quot;&amp;v=7&amp;yoho_bill_term=0&quot;; 245 +req = &quot;_sncp=&quot;+bsh.args[0]+&quot;&amp;app_version=6.0.0&amp;cart_type=ordinary&amp;client_type=&quot;+clientType+&quot;&amp;delivery_way=2&amp;fromPage=iFP_Payment&amp;method=app.Shopping.easyCompute&amp;os_version=10.3.2&amp;payment_type=1&amp;physical_channel=1&amp;private_key=&quot;+privateKey+&quot;&amp;product_sku_list=&quot;+product_sku_list+&quot;&amp;screen_size=375x667&amp;session_key=56839fa66dc3f1e58f8f3d9a7d12774c&amp;udid=4d08039b26ebafdea8f35336319bfdcd634029d3&amp;uid=&quot;+bsh.args[4]+&quot;&amp;v=7&amp;yoho_bill_term=0&quot;;
246 vars.put(&quot;searchValue&quot;,req+&quot;&amp;client_secret=&quot;+md5);</stringProp> 246 vars.put(&quot;searchValue&quot;,req+&quot;&amp;client_secret=&quot;+md5);</stringProp>
247 </BeanShellPreProcessor> 247 </BeanShellPreProcessor>
248 <hashTree/> 248 <hashTree/>