
com.jeecg.alipay.api.base.JwServiceWindowAPI Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of weixin4j Show documentation
Show all versions of weixin4j Show documentation
微信和钉钉开发SDK,主要提供微信、企业微信、钉钉的JAVA封装,降低集成难度,让API变简单
The newest version!
package com.jeecg.alipay.api.base;
import com.alipay.api.AlipayApiException;
import com.alipay.api.request.AlipayMobilePublicInfoModifyRequest;
import com.alipay.api.request.AlipayMobilePublicInfoQueryRequest;
import com.alipay.api.response.AlipayMobilePublicInfoModifyResponse;
import com.alipay.api.response.AlipayMobilePublicInfoQueryResponse;
import com.jeecg.alipay.api.base.vo.ServicWindowsVo.ServiceWindowsContent;
import com.jeecg.alipay.api.core.AlipayClientFactory;
import com.jeecg.alipay.api.core.AlipayConfig;
/**
* 服务窗基础信息
*
* @author zhangdaihao
*
*/
public class JwServiceWindowAPI {
/**
* 服务窗基础信息查询方法
*
* @param appAuthToken
* @return
* @throws AlipayApiException
*/
public static AlipayMobilePublicInfoQueryResponse infoQuery(String appAuthToken,AlipayConfig config) throws AlipayApiException {
AlipayMobilePublicInfoQueryRequest request = new AlipayMobilePublicInfoQueryRequest();
request.putOtherTextParam("app_auth_token", appAuthToken);
return AlipayClientFactory.getAlipayClientInstance(config).execute(request);
}
/**
* 服务窗基础信息修改方法
*
* @param appAuthToken
* @param serviceWindowsContent
* @return
* @throws AlipayApiException
*/
public static AlipayMobilePublicInfoModifyResponse queryAdvertise(String appAuthToken, ServiceWindowsContent serviceWindowsContent,AlipayConfig config) throws AlipayApiException {
AlipayMobilePublicInfoModifyRequest request = new AlipayMobilePublicInfoModifyRequest();
request.putOtherTextParam("app_auth_token", appAuthToken);
request.setAppName(serviceWindowsContent.getAppName());
request.setLogoUrl(serviceWindowsContent.getLogoUrl());
request.setPublicGreeting(serviceWindowsContent.getPublicGreeting());
request.setLicenseUrl(serviceWindowsContent.getLicenseUrl());
request.setShopPic1(serviceWindowsContent.getShopPic1());
request.setShopPic2(serviceWindowsContent.getShopPic2());
request.setShopPic3(serviceWindowsContent.getShopPic3());
return AlipayClientFactory.getAlipayClientInstance(config).execute(request);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy