identity_hash
This commit is contained in:
@ -78,4 +78,8 @@ public interface OrderPayMapper {
|
||||
" where payment_id = #{authNo}")
|
||||
int updateFreezeSubOrderPaymentStatus(@Param("authNo") String authNo,
|
||||
@Param("transactionId") String transactionId);
|
||||
|
||||
@Select("SELECT SHA2 ( CONVERT (concat(u.real_name,u.id_no) USING utf8 ), 256 ) as hashStr FROM zc_order_sub s,zc_order_main m,zc_base_user u WHERE s.payment_id = #{paymentId} AND s.order_id = m.order_id AND m.customer_phone = u.phone_number AND u.authed = '1'")
|
||||
String getHashStrByTradeNo(@Param("paymentId") String paymentId);
|
||||
|
||||
}
|
||||
|
||||
@ -324,6 +324,8 @@ public class AlipayServiceImpl implements AlipayService {
|
||||
AlipayFundAuthOrderAppFreezeRequest request = new AlipayFundAuthOrderAppFreezeRequest();
|
||||
AlipayFundAuthOrderAppFreezeModel model = new AlipayFundAuthOrderAppFreezeModel();
|
||||
|
||||
String HashStr = orderPayMapper.getHashStrByTradeNo(alipayFundFreezeRequest.getOutOrderNo());
|
||||
|
||||
// 设置订单标题
|
||||
model.setOrderTitle(alipayFundFreezeRequest.getTitle());
|
||||
|
||||
@ -348,6 +350,8 @@ public class AlipayServiceImpl implements AlipayService {
|
||||
// 设置免押受理台模式
|
||||
model.setDepositProductMode("DEPOSIT_ONLY");
|
||||
|
||||
model.setIdentityParams("{\"identity_hash\": \""+HashStr+"\"}");
|
||||
|
||||
request.setBizModel(model);
|
||||
|
||||
// 设置异步通知地址
|
||||
|
||||
Reference in New Issue
Block a user