Showing
1 changed file
with
3 additions
and
3 deletions
@@ -1789,7 +1789,7 @@ vars.put("searchValue",req+"&client_secret="+md5);</stri | @@ -1789,7 +1789,7 @@ vars.put("searchValue",req+"&client_secret="+md5);</stri | ||
1789 | <BeanShellPreProcessor guiclass="TestBeanGUI" testclass="BeanShellPreProcessor" testname="前置BeanShell" enabled="true"> | 1789 | <BeanShellPreProcessor guiclass="TestBeanGUI" testclass="BeanShellPreProcessor" testname="前置BeanShell" enabled="true"> |
1790 | <stringProp name="TestPlan.comments"></stringProp> | 1790 | <stringProp name="TestPlan.comments"></stringProp> |
1791 | <boolProp name="resetInterpreter">false</boolProp> | 1791 | <boolProp name="resetInterpreter">false</boolProp> |
1792 | - <stringProp name="parameters">${product_id} ${uid}</stringProp> | 1792 | + <stringProp name="parameters">${SNCP} ${product_id} ${uid}</stringProp> |
1793 | <stringProp name="filename"></stringProp> | 1793 | <stringProp name="filename"></stringProp> |
1794 | <stringProp name="script">import java.security.MessageDigest; | 1794 | <stringProp name="script">import java.security.MessageDigest; |
1795 | import java.util.Random; | 1795 | import java.util.Random; |
@@ -1799,7 +1799,7 @@ int rd = new Random().nextInt(2); | @@ -1799,7 +1799,7 @@ int rd = new Random().nextInt(2); | ||
1799 | String clientType = clientTypes[rd]; | 1799 | String clientType = clientTypes[rd]; |
1800 | String privateKey = privateKeys[rd]; | 1800 | String privateKey = privateKeys[rd]; |
1801 | String os_version = "android7.1.1:vivo_X20Plus_A"; | 1801 | String os_version = "android7.1.1:vivo_X20Plus_A"; |
1802 | -String req = "app_version=6.6.0&business_line=yohobuy&client_type="+clientType+"&fromPage=aFP_ProductDetail&gender=1,3&id="+bsh.args[0]+"&method=app.favorite.isFavoriteNew&os_version="+os_version+"&physical_channel=1&private_key="+privateKey+"&screen_size=1080x2040&session_key=d99017a864d27b7772fa494bc2edc8e3&udid=867476033141296577e6dba2096f180&uid="+bsh.args[1]+"&v=7&vip_level=1&yh_channel=1"; | 1802 | +String req = "_sncp="+bsh.args[0]+"&app_version=6.6.0&business_line=yohobuy&client_type="+clientType+"&fromPage=aFP_ProductDetail&gender=1,3&id="+bsh.args[1]+"&method=app.favorite.isFavoriteNew&os_version="+os_version+"&physical_channel=1&private_key="+privateKey+"&screen_size=1080x2040&session_key=d99017a864d27b7772fa494bc2edc8e3&udid=867476033141296577e6dba2096f180&uid="+bsh.args[2]+"&v=7&vip_level=1&yh_channel=1"; |
1803 | MessageDigest md = MessageDigest.getInstance("MD5"); | 1803 | MessageDigest md = MessageDigest.getInstance("MD5"); |
1804 | byte[] btInput = req.getBytes(); | 1804 | byte[] btInput = req.getBytes(); |
1805 | md.update(btInput); | 1805 | md.update(btInput); |
@@ -1814,7 +1814,7 @@ for(byte b : btResult){ | @@ -1814,7 +1814,7 @@ for(byte b : btResult){ | ||
1814 | } | 1814 | } |
1815 | String md5 = sb.toString(); | 1815 | String md5 = sb.toString(); |
1816 | os_version=URLEncoder.encode(os_version); | 1816 | os_version=URLEncoder.encode(os_version); |
1817 | -req = "app_version=6.6.0&business_line=yohobuy&client_type="+clientType+"&fromPage=aFP_ProductDetail&gender=1,3&id="+bsh.args[0]+"&method=app.favorite.isFavoriteNew&os_version="+os_version+"&physical_channel=1&private_key="+privateKey+"&screen_size=1080x2040&session_key=d99017a864d27b7772fa494bc2edc8e3&udid=867476033141296577e6dba2096f180&uid="+bsh.args[1]+"&v=7&vip_level=1&yh_channel=1"; | 1817 | +req = "_sncp="+bsh.args[0]+"&app_version=6.6.0&business_line=yohobuy&client_type="+clientType+"&fromPage=aFP_ProductDetail&gender=1,3&id="+bsh.args[1]+"&method=app.favorite.isFavoriteNew&os_version="+os_version+"&physical_channel=1&private_key="+privateKey+"&screen_size=1080x2040&session_key=d99017a864d27b7772fa494bc2edc8e3&udid=867476033141296577e6dba2096f180&uid="+bsh.args[2]+"&v=7&vip_level=1&yh_channel=1"; |
1818 | vars.put("searchValue",req+"&client_secret="+md5);</stringProp> | 1818 | vars.put("searchValue",req+"&client_secret="+md5);</stringProp> |
1819 | </BeanShellPreProcessor> | 1819 | </BeanShellPreProcessor> |
1820 | <hashTree/> | 1820 | <hashTree/> |
-
Please register or login to post a comment