@ -85,14 +85,11 @@ public class SignatureUtil {
}
public static void main ( String [ ] args ) throws Exception {
String paramStr = "{ \n" +
" \"reqId\": \"cs0008\",\n" +
" \"appId\": \"hf7356c71fb97ab0\",\n" +
" \"discountPkNo\": \"DPK10018\",\n" +
" \"number\": \"1\",\n" +
" \"phone\": \"17726395120\"\n" +
"}" ;
String sign = createSign ( JSONObject . parseObject ( paramStr ) , "8aef995ff71485dc19b36e35f04c4016" ) ;
JSONObject obj = new JSONObject ( ) ;
obj . put ( "appid" , "hfc030e3c3217dfc" ) ;
obj . put ( "phone" , "18328378446" ) ;
String sign = createSign ( JSONObject . parseObject ( obj . toJSONString ( ) ) , "8518b90a06b4ac67fd2ff8d8ae4c2d62" ) ;
System . out . println ( sign ) ;
}