| | |
| | | |
| | | import com.dayu.recharge.dao.BaseDaoSingleton; |
| | | import com.dayu.recharge.dbBean.AdminDataBean; |
| | | import com.dayu.recharge.dbBean.DeviceNumber; |
| | | import com.dayu.recharge.dbBean.IpBean; |
| | | import com.easysocket.EasySocket; |
| | | import com.easysocket.entity.OriginReadData; |
| | |
| | | @Override |
| | | public void onSocketConnSuccess(SocketAddress socketAddress) { |
| | | Log.i("SocketActionListener", "连接成功"); |
| | | String initCode = WSHelper.getInstance(MyApplication.myApplication).get("initCode", ""); |
| | | if (TextUtils.isEmpty(initCode) && !MyApplication.myApplication.isDoInitMachine) { |
| | | DeviceNumber initCode = BaseDaoSingleton.getInstance(MyApplication.myApplication).deviceNumberDao().findFirst(); |
| | | if (initCode==null && !MyApplication.myApplication.isDoInitMachine) { |
| | | new Handler().postDelayed(new Runnable() { |
| | | @Override |
| | | public void run() { |