version:2.5

fix:增加根据类别显示标签,修改WiFi获取
update:
This commit is contained in:
2022-02-22 15:48:19 +08:00
parent 2230ea5161
commit 7e37ab1104
13 changed files with 78 additions and 46 deletions

View File

@@ -924,7 +924,7 @@ public class HTTPInterface {
});
}
public static void getWiFiPasswd(Context context) {
public static void getWiFiPasswd() {
NetInterfaceManager.getInstance().getWiFiControl()
.subscribe(new Observer<BaseResponse<List<WiFiAlias>>>() {
@Override

View File

@@ -76,7 +76,7 @@ public class UrlAddress {
/*获取远程关机时间*/
public static final String GET_POWEROFF_TIME = "And/getTimedShutdown";
/*获取WiFi名和密码*/
public static final String GET_WIFI_ALIAS_PW = "And/getWifi";
public static final String GET_WIFI_ALIAS_PW = "And/SnControl/getWifi";
/*获取log任务*/
public static final String GET_LOG_ORDER = "And/getSnRunLog";
/*上传log文件*/

View File

@@ -10,7 +10,9 @@ import java.util.List;
import io.reactivex.Observable;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;
/**
* @author : fanhuitong
@@ -20,9 +22,8 @@ import retrofit2.http.POST;
* version: 1.0
*/
public interface GetWiFiAliasApi {
@FormUrlEncoded
@POST(UrlAddress.GET_WIFI_ALIAS_PW)
@GET(UrlAddress.GET_WIFI_ALIAS_PW)
Observable<BaseResponse<List<WiFiAlias>>> getWiFiAlias(
@Field("sn") String sn
@Query("sn") String sn
);
}