修改微信签名错误

This commit is contained in:
yuyang 2021-12-28 09:36:23 +08:00
parent 6776fa3071
commit b0af3572eb
2 changed files with 4 additions and 1 deletions

View File

@ -361,6 +361,9 @@ public class XhpcRefundAuditController extends BaseController {
String stringSignTemp = param + "&key=" + environment.getProperty("KEY");
//签名 不参与签名 默认MD5算法
String sign = StringUtils.md5(stringSignTemp);
if(sign.length()!=32){
sign="0"+sign;
}
String xmlString = "<xml>\n" +
" <amount>" + amount + "</amount>\n" +
" <check_name>" + "NO_CHECK" + "</check_name>\n" +

View File

@ -201,7 +201,7 @@
select xcop.community_personnel_id as app_user_id from xhpc_community_personnel as xcop inner join (select user_id from xhpc_recharge_order where source=2) us2 on us2.user_id=xcop.community_personnel_id where xcop.phone like concat('%', #{phone}, '%')
union
select xcup.customers_personnel_id as app_user_id from xhpc_customers_personnel as xcup inner join (select user_id from xhpc_recharge_order where source=3) us3 on us3.user_id = xcup.customers_personnel_id where xcup.phone like concat('%', #{phone}, '%')
) ut on ut.app_user_id = xro.app_user_id
) ut on ut.app_user_id = xro.user_id
</if>
where xro.del_flag = 0
<if test="source != null and phone != null">