二维码
This commit is contained in:
parent
f989615ba0
commit
7738696da9
@ -29,6 +29,8 @@ public class PathConfig {
|
||||
public static final String MODULE_SYS_C = "systemConfig";
|
||||
public static final String MODULE_VISITOR = "visitor";
|
||||
public static final String MODULE_PATROL = "patrol";
|
||||
public static final String WECHAT_APPID="wx3267db0076f8b522";
|
||||
public static final String WECHAT_SECERT="3d4dcd2a2c2d131f42ed986fa2d5a903";
|
||||
public static final String SECRET = "CMXX_TOKEN_INFOS";//秘钥
|
||||
public static final String PROJECT_NAME = "locationReal";//TODO ===项目名称==
|
||||
public static final String ACTION_SYSTEM_MESSAGE = "com.sucstepsoft.hs.message";
|
||||
|
@ -0,0 +1,23 @@
|
||||
package com.sucstepsoft.cm_utils.core.beans;
|
||||
|
||||
public class AccessToken {
|
||||
|
||||
private String access_token;
|
||||
private int expires_in;
|
||||
|
||||
public String getAccess_token() {
|
||||
return access_token;
|
||||
}
|
||||
|
||||
public void setAccess_token(String access_token) {
|
||||
this.access_token = access_token;
|
||||
}
|
||||
|
||||
public int getExpires_in() {
|
||||
return expires_in;
|
||||
}
|
||||
|
||||
public void setExpires_in(int expires_in) {
|
||||
this.expires_in = expires_in;
|
||||
}
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
package com.sucstepsoft.cm_utils.core.beans;
|
||||
|
||||
public class TicketBean {
|
||||
|
||||
private int errcode;
|
||||
private String errmsg;
|
||||
private String openlink;
|
||||
|
||||
public int getErrcode() {
|
||||
return errcode;
|
||||
}
|
||||
|
||||
public void setErrcode(int errcode) {
|
||||
this.errcode = errcode;
|
||||
}
|
||||
|
||||
public String getErrmsg() {
|
||||
return errmsg;
|
||||
}
|
||||
|
||||
public void setErrmsg(String errmsg) {
|
||||
this.errmsg = errmsg;
|
||||
}
|
||||
|
||||
public String getOpenlink() {
|
||||
return openlink;
|
||||
}
|
||||
|
||||
public void setOpenlink(String openlink) {
|
||||
this.openlink = openlink;
|
||||
}
|
||||
}
|
@ -88,4 +88,9 @@ public class BaseUrlApi {
|
||||
public static final String UPDATE_URL = "version.json";
|
||||
|
||||
public static final String SOCKET_IP = BASE_SYSTEM_IP + "app/wxeventrelease/";
|
||||
|
||||
|
||||
|
||||
public static final String WECHAT_OPENLINK = "https://api.weixin.qq.com/wxa/generatescheme?access_token=";
|
||||
public static final String WECHAT_ACCESSTOKEN = "https://api.weixin.qq.com/cgi-bin/token";
|
||||
}
|
||||
|
@ -2,10 +2,12 @@ package com.sucstepsoft.cm_utils.core.retrofit_net.api;
|
||||
|
||||
|
||||
import com.google.gson.JsonObject;
|
||||
import com.sucstepsoft.cm_utils.core.beans.AccessToken;
|
||||
import com.sucstepsoft.cm_utils.core.beans.AreaBean;
|
||||
import com.sucstepsoft.cm_utils.core.beans.BaseDictionaryBean;
|
||||
import com.sucstepsoft.cm_utils.core.beans.BaseSuccessBean;
|
||||
import com.sucstepsoft.cm_utils.core.beans.DictionaryBean;
|
||||
import com.sucstepsoft.cm_utils.core.beans.TicketBean;
|
||||
import com.sucstepsoft.cm_utils.core.beans.UploadBean;
|
||||
import com.sucstepsoft.cm_utils.core.beans.UserInfoFieldBean;
|
||||
import com.sucstepsoft.cm_utils.core.beans.UserLoginBean;
|
||||
@ -331,4 +333,28 @@ public interface BaseApiService {
|
||||
@Headers({"base_url_name:bigdata", "Content-Type:application/json", "Accept:application/json"})
|
||||
@GET("app/contentcensusrelease/log")
|
||||
Observable<BaseSuccessBean> bigDataRead(@Query("requestUrl") String id);
|
||||
|
||||
|
||||
/**
|
||||
* 获取accesstoken
|
||||
*
|
||||
* @param url
|
||||
* @param type
|
||||
* @param appid
|
||||
* @param secret
|
||||
* @return
|
||||
*/
|
||||
@Headers({"Content-Type:application/json", "Accept:application/json"})
|
||||
@GET
|
||||
Observable<AccessToken> getWechatAccessToken(@Url String url, @Query("grant_type") String type, @Query("appid") String appid, @Query("secret") String secret);
|
||||
|
||||
/**
|
||||
* 获取ticket
|
||||
*
|
||||
* @param url
|
||||
* @return
|
||||
*/
|
||||
@Headers({"Content-Type:application/json", "Accept:application/json"})
|
||||
@POST
|
||||
Observable<TicketBean> getWechatOpenLink(@Url String url, @Body RequestBody body);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user