...
|
...
|
@@ -1798,8 +1798,8 @@ String[] privateKeys = {"fd4ad5fcfa0de589ef238c0e7331b585","a85bb |
|
|
int rd = new Random().nextInt(2);
|
|
|
String clientType = clientTypes[rd];
|
|
|
String privateKey = privateKeys[rd];
|
|
|
String os_version = "android6.0.1:OPPO_R9s";
|
|
|
String req = "app_version=5.5.1&client_type="+clientType+"&fromPage=aFP_ProductDetail&gender=2,3&id="+bsh.args[0]+"&method=app.favorite.isFavoriteNew&os_version="+os_version+"&physical_channel=2&private_key="+privateKey+"&screen_size=1080x1920&session_key=02a0a0de9436783f8d72d02f4841c04c&udid=A000006149EAE9b8f4f3d5ea7421e8&uid="+bsh.args[1]+"&v=7&yh_channel=2";
|
|
|
String os_version = "android7.1.1:vivo_X20Plus_A";
|
|
|
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";
|
|
|
MessageDigest md = MessageDigest.getInstance("MD5");
|
|
|
byte[] btInput = req.getBytes();
|
|
|
md.update(btInput);
|
...
|
...
|
@@ -1814,7 +1814,7 @@ for(byte b : btResult){ |
|
|
}
|
|
|
String md5 = sb.toString();
|
|
|
os_version=URLEncoder.encode(os_version);
|
|
|
req = "app_version=5.5.1&client_type="+clientType+"&fromPage=aFP_ProductDetail&gender=2,3&id="+bsh.args[0]+"&method=app.favorite.isFavoriteNew&os_version="+os_version+"&physical_channel=2&private_key="+privateKey+"&screen_size=1080x1920&session_key=02a0a0de9436783f8d72d02f4841c04c&udid=A000006149EAE9b8f4f3d5ea7421e8&uid="+bsh.args[1]+"&v=7&yh_channel=2";
|
|
|
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";
|
|
|
vars.put("searchValue",req+"&client_secret="+md5);</stringProp>
|
|
|
</BeanShellPreProcessor>
|
|
|
<hashTree/>
|
...
|
...
|
|