|
|
|
@ -17,6 +17,7 @@ import android.text.TextUtils;
|
|
|
|
import android.util.Log;
|
|
|
|
import android.util.Log;
|
|
|
|
import android.widget.Toast;
|
|
|
|
import android.widget.Toast;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.bjzc.yfdxj.activity.MainActivity;
|
|
|
|
import com.bjzc.yfdxj.bean.MemberCallBackBean;
|
|
|
|
import com.bjzc.yfdxj.bean.MemberCallBackBean;
|
|
|
|
import com.bjzc.yfdxj.contans.Contans;
|
|
|
|
import com.bjzc.yfdxj.contans.Contans;
|
|
|
|
import com.google.gson.Gson;
|
|
|
|
import com.google.gson.Gson;
|
|
|
|
@ -160,6 +161,7 @@ public class MqttSSLPublishServer {
|
|
|
|
String username =RSAUtils.decryptBASE64StrLocal(usernameTemp);
|
|
|
|
String username =RSAUtils.decryptBASE64StrLocal(usernameTemp);
|
|
|
|
String password = RSAUtils.decryptBASE64StrLocal(passwordTemp);
|
|
|
|
String password = RSAUtils.decryptBASE64StrLocal(passwordTemp);
|
|
|
|
String nfc = (String) SPUtils.get(context,Contans.NFCBM,String.valueOf(""));
|
|
|
|
String nfc = (String) SPUtils.get(context,Contans.NFCBM,String.valueOf(""));
|
|
|
|
|
|
|
|
String name = (String) SPUtils.get(context, Contans.USERNAME, String.valueOf(""));
|
|
|
|
|
|
|
|
|
|
|
|
HashMap<String, String> mapPush = new HashMap<>();
|
|
|
|
HashMap<String, String> mapPush = new HashMap<>();
|
|
|
|
mapPush.put("username",username);
|
|
|
|
mapPush.put("username",username);
|
|
|
|
@ -167,6 +169,7 @@ public class MqttSSLPublishServer {
|
|
|
|
mapPush.put("date",sd.format(new Date()));
|
|
|
|
mapPush.put("date",sd.format(new Date()));
|
|
|
|
mapPush.put("appversion", getVersionName());
|
|
|
|
mapPush.put("appversion", getVersionName());
|
|
|
|
mapPush.put("nfc",nfc);
|
|
|
|
mapPush.put("nfc",nfc);
|
|
|
|
|
|
|
|
mapPush.put("name", name);
|
|
|
|
Gson gson = new Gson();
|
|
|
|
Gson gson = new Gson();
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
//判断拦截状态,这里注意一下,如果没有这个判断,是非常坑的
|
|
|
|
//判断拦截状态,这里注意一下,如果没有这个判断,是非常坑的
|
|
|
|
|