Commit da545be86bda070ce82067c8f7ce090a069f4df4
1 parent
fe95a7d1
畅游通核销app:1.新增检前缀为OCP票流程
Showing
7 changed files
with
82 additions
and
18 deletions
AndroidManifest.xml
| @@ -2,8 +2,8 @@ | @@ -2,8 +2,8 @@ | ||
| 2 | <manifest xmlns:android="http://schemas.android.com/apk/res/android" | 2 | <manifest xmlns:android="http://schemas.android.com/apk/res/android" | 
| 3 | xmlns:tool="http://schemas.android.com/tools" | 3 | xmlns:tool="http://schemas.android.com/tools" | 
| 4 | package="com.ectrip.trips.check" | 4 | package="com.ectrip.trips.check" | 
| 5 | - android:versionCode="26" | ||
| 6 | - android:versionName="4.23" | 5 | + android:versionCode="27" | 
| 6 | + android:versionName="4.24" | ||
| 7 | tool:ignore="LockedOrientationActivity"> | 7 | tool:ignore="LockedOrientationActivity"> | 
| 8 | 8 | ||
| 9 | <!-- 各个类型的大小布局声明 --> | 9 | <!-- 各个类型的大小布局声明 --> | 
| @@ -260,6 +260,13 @@ | @@ -260,6 +260,13 @@ | ||
| 260 | android:screenOrientation="portrait" | 260 | android:screenOrientation="portrait" | 
| 261 | android:theme="@style/Theme" | 261 | android:theme="@style/Theme" | 
| 262 | android:windowSoftInputMode="adjustPan|stateHidden" /> | 262 | android:windowSoftInputMode="adjustPan|stateHidden" /> | 
| 263 | + <activity | ||
| 264 | + android:name="com.ectrip.cyt.ui.PhoneCodeListActivity" | ||
| 265 | + android:configChanges="orientation|keyboardHidden" | ||
| 266 | + android:launchMode="singleTask" | ||
| 267 | + android:screenOrientation="portrait" | ||
| 268 | + android:theme="@style/Theme" | ||
| 269 | + android:windowSoftInputMode="adjustPan|stateHidden" /> | ||
| 263 | <!-- 身份证列表页面 --> | 270 | <!-- 身份证列表页面 --> | 
| 264 | <activity | 271 | <activity | 
| 265 | android:name="com.ectrip.cyt.ui.InputOrderListActivity" | 272 | android:name="com.ectrip.cyt.ui.InputOrderListActivity" | 
res/values/colors.xml
| @@ -39,7 +39,7 @@ | @@ -39,7 +39,7 @@ | ||
| 39 | <color name="numbers_text_color">#8c8c8c</color> | 39 | <color name="numbers_text_color">#8c8c8c</color> | 
| 40 | 40 | ||
| 41 | <color name="transparent_black">#7F000000</color> | 41 | <color name="transparent_black">#7F000000</color> | 
| 42 | - | 42 | + <color name="black">#000000</color> | 
| 43 | <!-- 下面的是名邦良本的日期选择器 --> | 43 | <!-- 下面的是名邦良本的日期选择器 --> | 
| 44 | <color name="calendar_active_month_bg">#fff5f7f9</color> | 44 | <color name="calendar_active_month_bg">#fff5f7f9</color> | 
| 45 | <color name="calendar_bg">#ffffffff</color> | 45 | <color name="calendar_bg">#ffffffff</color> | 
res/values/dimens.xml
| @@ -51,8 +51,11 @@ | @@ -51,8 +51,11 @@ | ||
| 51 | <dimen name="dp_48">48dp</dimen> | 51 | <dimen name="dp_48">48dp</dimen> | 
| 52 | <dimen name="sp_25">25sp</dimen> | 52 | <dimen name="sp_25">25sp</dimen> | 
| 53 | <dimen name="dp_20">20dp</dimen> | 53 | <dimen name="dp_20">20dp</dimen> | 
| 54 | + <dimen name="dp_18">18dp</dimen> | ||
| 54 | <dimen name="dp_68">68dp</dimen> | 55 | <dimen name="dp_68">68dp</dimen> | 
| 55 | <dimen name="sp_18">18sp</dimen> | 56 | <dimen name="sp_18">18sp</dimen> | 
| 56 | <dimen name="dp_15">15dp</dimen> | 57 | <dimen name="dp_15">15dp</dimen> | 
| 57 | <dimen name="dp_0">0dp</dimen> | 58 | <dimen name="dp_0">0dp</dimen> | 
| 59 | + <dimen name="dp_5">5dp</dimen> | ||
| 60 | + <dimen name="dp_10">10dp</dimen> | ||
| 58 | </resources> | 61 | </resources> | 
res/values/strings.xml
| @@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
| 2 | <resources> | 2 | <resources> | 
| 3 | 3 | ||
| 4 | <!-- app_name 为"畅游通O2O移动终端"和 "去哪儿O2O移动终端" 或 "O2O移动终端" 或 "路路通O2O移动终端"--> | 4 | <!-- app_name 为"畅游通O2O移动终端"和 "去哪儿O2O移动终端" 或 "O2O移动终端" 或 "路路通O2O移动终端"--> | 
| 5 | - <string name="app_name">畅游通O2O移动终端</string> | 5 | + <string name="app_name">智能移动验证系统</string> | 
| 6 | <string name="input_idcard_hit">请输入身份证号码</string> | 6 | <string name="input_idcard_hit">请输入身份证号码</string> | 
| 7 | <!-- list --> | 7 | <!-- list --> | 
| 8 | <string name="loading">正在加载</string> | 8 | <string name="loading">正在加载</string> | 
| @@ -86,6 +86,7 @@ | @@ -86,6 +86,7 @@ | ||
| 86 | <string name="system_setting">系统设置</string> | 86 | <string name="system_setting">系统设置</string> | 
| 87 | <string name="reprint">补打小票</string> | 87 | <string name="reprint">补打小票</string> | 
| 88 | <string name="check">检票操作</string> | 88 | <string name="check">检票操作</string> | 
| 89 | + <string name="check_ticket">检票</string> | ||
| 89 | <string name="query">订单查询</string> | 90 | <string name="query">订单查询</string> | 
| 90 | <string name="input_pwd">请输入密码</string> | 91 | <string name="input_pwd">请输入密码</string> | 
| 91 | <string name="btn_ok">确定</string> | 92 | <string name="btn_ok">确定</string> | 
src/com/ectrip/cyt/ui/PhomeScanerOrderActivity.java
| @@ -171,6 +171,9 @@ public class PhomeScanerOrderActivity extends BaseActivity implements Callback { | @@ -171,6 +171,9 @@ public class PhomeScanerOrderActivity extends BaseActivity implements Callback { | ||
| 171 | } else if ((resultString.startsWith("TY_") || (resultString.startsWith("PMS_")))) { | 171 | } else if ((resultString.startsWith("TY_") || (resultString.startsWith("PMS_")))) { | 
| 172 | typeScan = 1; | 172 | typeScan = 1; | 
| 173 | resultString = resultString; | 173 | resultString = resultString; | 
| 174 | + } else if (resultString.startsWith("OCP_")) { | ||
| 175 | + typeScan = 0; | ||
| 176 | + resultString = resultString; | ||
| 174 | } else { | 177 | } else { | 
| 175 | typeScan = 1; | 178 | typeScan = 1; | 
| 176 | resultString = resultString; | 179 | resultString = resultString; | 
| @@ -178,9 +181,14 @@ public class PhomeScanerOrderActivity extends BaseActivity implements Callback { | @@ -178,9 +181,14 @@ public class PhomeScanerOrderActivity extends BaseActivity implements Callback { | ||
| 178 | } catch (Exception e) { | 181 | } catch (Exception e) { | 
| 179 | e.printStackTrace(); | 182 | e.printStackTrace(); | 
| 180 | } | 183 | } | 
| 181 | - | ||
| 182 | - Intent intent = new Intent(PhomeScanerOrderActivity.this, | ||
| 183 | - QRCodeOrderListActivity.class); | 184 | + Intent intent; | 
| 185 | + if (resultString.startsWith("OCP_")) { | ||
| 186 | + intent = new Intent(PhomeScanerOrderActivity.this, | ||
| 187 | + PhoneCodeListActivity.class); | ||
| 188 | + } else { | ||
| 189 | + intent = new Intent(PhomeScanerOrderActivity.this, | ||
| 190 | + QRCodeOrderListActivity.class); | ||
| 191 | + } | ||
| 184 | intent.putExtra("mode", 1); | 192 | intent.putExtra("mode", 1); | 
| 185 | intent.putExtra("input_orid", resultString); | 193 | intent.putExtra("input_orid", resultString); | 
| 186 | LogUtil.i(TAG, getString(R.string.scan_result) + resultString); | 194 | LogUtil.i(TAG, getString(R.string.scan_result) + resultString); | 
| @@ -231,7 +239,7 @@ public class PhomeScanerOrderActivity extends BaseActivity implements Callback { | @@ -231,7 +239,7 @@ public class PhomeScanerOrderActivity extends BaseActivity implements Callback { | ||
| 231 | bean.setEc_signkey(identity); | 239 | bean.setEc_signkey(identity); | 
| 232 | if (1 == beans.get(0).getEc_isPrint()) { | 240 | if (1 == beans.get(0).getEc_isPrint()) { | 
| 233 | bean.setEc_isPrint(beans.get(0).getEc_isPrint()); | 241 | bean.setEc_isPrint(beans.get(0).getEc_isPrint()); | 
| 234 | - }else { | 242 | + } else { | 
| 235 | bean.setEc_isPrint(0); | 243 | bean.setEc_isPrint(0); | 
| 236 | } | 244 | } | 
| 237 | DbManager.ClearConfig(); | 245 | DbManager.ClearConfig(); | 
src/com/ectrip/cyt/ui/QRCodeOrderListActivity.java
| 1 | package com.ectrip.cyt.ui; | 1 | package com.ectrip.cyt.ui; | 
| 2 | 2 | ||
| 3 | +import java.util.ArrayList; | ||
| 3 | import java.util.List; | 4 | import java.util.List; | 
| 4 | import java.util.Timer; | 5 | import java.util.Timer; | 
| 5 | import java.util.TimerTask; | 6 | import java.util.TimerTask; | 
| @@ -28,6 +29,7 @@ import com.ectrip.cyt.config.MyApp; | @@ -28,6 +29,7 @@ import com.ectrip.cyt.config.MyApp; | ||
| 28 | import com.ectrip.cyt.constant.DeviceType; | 29 | import com.ectrip.cyt.constant.DeviceType; | 
| 29 | import com.ectrip.cyt.constant.OrderCode; | 30 | import com.ectrip.cyt.constant.OrderCode; | 
| 30 | import com.ectrip.cyt.constant.SelectAction; | 31 | import com.ectrip.cyt.constant.SelectAction; | 
| 32 | +import com.ectrip.cyt.request.ProductOfConsumeOrder; | ||
| 31 | import com.ectrip.cyt.response.PassengerInfosBean; | 33 | import com.ectrip.cyt.response.PassengerInfosBean; | 
| 32 | import com.ectrip.cyt.response.ProductInfoQuery; | 34 | import com.ectrip.cyt.response.ProductInfoQuery; | 
| 33 | import com.ectrip.cyt.response.QueryOrderResponse; | 35 | import com.ectrip.cyt.response.QueryOrderResponse; | 
| @@ -53,6 +55,7 @@ public class QRCodeOrderListActivity extends BaseActivity implements ListOnclick | @@ -53,6 +55,7 @@ public class QRCodeOrderListActivity extends BaseActivity implements ListOnclick | ||
| 53 | private TextView errorInfo; | 55 | private TextView errorInfo; | 
| 54 | private Integer Select; | 56 | private Integer Select; | 
| 55 | private int typeScan; | 57 | private int typeScan; | 
| 58 | + | ||
| 56 | @Override | 59 | @Override | 
| 57 | protected void onCreate(Bundle savedInstanceState) { | 60 | protected void onCreate(Bundle savedInstanceState) { | 
| 58 | super.onCreate(savedInstanceState); | 61 | super.onCreate(savedInstanceState); | 
| @@ -98,8 +101,14 @@ public class QRCodeOrderListActivity extends BaseActivity implements ListOnclick | @@ -98,8 +101,14 @@ public class QRCodeOrderListActivity extends BaseActivity implements ListOnclick | ||
| 98 | .setName("MachineType").getObject("type", Integer.class); | 101 | .setName("MachineType").getObject("type", Integer.class); | 
| 99 | orid = getIntent().getStringExtra("input_orid"); | 102 | orid = getIntent().getStringExtra("input_orid"); | 
| 100 | LogUtil.d(TAG, "orid = " + orid); | 103 | LogUtil.d(TAG, "orid = " + orid); | 
| 101 | - typeScan = getIntent().getIntExtra("typeScan",0); | 104 | + typeScan = getIntent().getIntExtra("typeScan", 0); | 
| 102 | LogUtil.d(TAG, "typeScan = " + typeScan); | 105 | LogUtil.d(TAG, "typeScan = " + typeScan); | 
| 106 | + if (orid.startsWith("OCP_")) { | ||
| 107 | + ArrayList<ProductOfConsumeOrder> productOfConsumeOrders = new ArrayList<>(); | ||
| 108 | + ProductOfConsumeOrder productOfConsumeOrder = new ProductOfConsumeOrder(); | ||
| 109 | + HttpHelper.getInstance(QRCodeOrderListActivity.this).codeConsume(orid, null, null, null, null, productOfConsumeOrders, new MyHttpCallback()); | ||
| 110 | + return; | ||
| 111 | + } | ||
| 103 | HttpHelper.getInstance(QRCodeOrderListActivity.this).queryOrder( | 112 | HttpHelper.getInstance(QRCodeOrderListActivity.this).queryOrder( | 
| 104 | "QRCODE", null, null, null, orid, null, null, "15", "1", | 113 | "QRCODE", null, null, null, orid, null, null, "15", "1", | 
| 105 | new MyHttpCallback()); | 114 | new MyHttpCallback()); | 
| @@ -174,6 +183,7 @@ public class QRCodeOrderListActivity extends BaseActivity implements ListOnclick | @@ -174,6 +183,7 @@ public class QRCodeOrderListActivity extends BaseActivity implements ListOnclick | ||
| 174 | data = result.getData(); | 183 | data = result.getData(); | 
| 175 | parse2(result.getData(), QueryOrderResponse.class, | 184 | parse2(result.getData(), QueryOrderResponse.class, | 
| 176 | QRCodeOrderListActivity.this); | 185 | QRCodeOrderListActivity.this); | 
| 186 | + LogUtil.d("QRCodeOrderListActivity", "data = " + data); | ||
| 177 | } else { | 187 | } else { | 
| 178 | if (dialog != null && dialog.isShowing()) { | 188 | if (dialog != null && dialog.isShowing()) { | 
| 179 | try { | 189 | try { | 
| @@ -282,7 +292,7 @@ public class QRCodeOrderListActivity extends BaseActivity implements ListOnclick | @@ -282,7 +292,7 @@ public class QRCodeOrderListActivity extends BaseActivity implements ListOnclick | ||
| 282 | List<ProductInfoQuery> products = orderInfos.get(position).getProducts(); | 292 | List<ProductInfoQuery> products = orderInfos.get(position).getProducts(); | 
| 283 | for (int i = 0; i < products.size(); i++) { | 293 | for (int i = 0; i < products.size(); i++) { | 
| 284 | List<PassengerInfosBean> passengerInfosBeans = products.get(i).getPassengerInfos(); | 294 | List<PassengerInfosBean> passengerInfosBeans = products.get(i).getPassengerInfos(); | 
| 285 | - for (PassengerInfosBean bean : passengerInfosBeans){ | 295 | + for (PassengerInfosBean bean : passengerInfosBeans) { | 
| 286 | if (orid.equals(bean.getVoucher())) { | 296 | if (orid.equals(bean.getVoucher())) { | 
| 287 | LogUtil.d(TAG, "getVoucher = " + bean.getVoucher()); | 297 | LogUtil.d(TAG, "getVoucher = " + bean.getVoucher()); | 
| 288 | centerHandle.partTicket(position, "", "TRUE", bean.getVoucher(), false); | 298 | centerHandle.partTicket(position, "", "TRUE", bean.getVoucher(), false); | 
src/com/ectrip/trips/net/HttpHelper.java
| @@ -16,6 +16,7 @@ import com.ectrip.cyt.config.MyApp; | @@ -16,6 +16,7 @@ import com.ectrip.cyt.config.MyApp; | ||
| 16 | import com.ectrip.cyt.constant.LogoType; | 16 | import com.ectrip.cyt.constant.LogoType; | 
| 17 | import com.ectrip.cyt.constant.constant; | 17 | import com.ectrip.cyt.constant.constant; | 
| 18 | import com.ectrip.cyt.db.DbManager; | 18 | import com.ectrip.cyt.db.DbManager; | 
| 19 | +import com.ectrip.cyt.request.ConsumeCodeRequest; | ||
| 19 | import com.ectrip.cyt.request.ConsumeOrderRequest; | 20 | import com.ectrip.cyt.request.ConsumeOrderRequest; | 
| 20 | import com.ectrip.cyt.request.DetectVersionRequest; | 21 | import com.ectrip.cyt.request.DetectVersionRequest; | 
| 21 | import com.ectrip.cyt.request.LoginRequest; | 22 | import com.ectrip.cyt.request.LoginRequest; | 
| @@ -90,7 +91,7 @@ public class HttpHelper extends HttpHelperCore { | @@ -90,7 +91,7 @@ public class HttpHelper extends HttpHelperCore { | ||
| 90 | map.put("requestParam", requestParam); | 91 | map.put("requestParam", requestParam); | 
| 91 | LogUtil.i(TAG,requestParam + "requestParam"); | 92 | LogUtil.i(TAG,requestParam + "requestParam"); | 
| 92 | executeHttpPost( | 93 | executeHttpPost( | 
| 93 | - "http://" + MyApp.getInstance().getServiceIp() + action, "", | 94 | + "https://" + MyApp.getInstance().getServiceIp() + action, "", | 
| 94 | map, httpCallback, "data", DataTrans.class); | 95 | map, httpCallback, "data", DataTrans.class); | 
| 95 | LogUtil.i(TAG,"url = " + "http://" + MyApp.getInstance().getServiceIp() + action); | 96 | LogUtil.i(TAG,"url = " + "http://" + MyApp.getInstance().getServiceIp() + action); | 
| 96 | if (testMOdel != null && testMOdel) { // 这个是调试弹框 | 97 | if (testMOdel != null && testMOdel) { // 这个是调试弹框 | 
| @@ -132,7 +133,7 @@ public class HttpHelper extends HttpHelperCore { | @@ -132,7 +133,7 @@ public class HttpHelper extends HttpHelperCore { | ||
| 132 | map.put("requestParam", requestParam); | 133 | map.put("requestParam", requestParam); | 
| 133 | LogUtil.i(TAG,"requestParam" + requestParam); | 134 | LogUtil.i(TAG,"requestParam" + requestParam); | 
| 134 | executeHttpPost( | 135 | executeHttpPost( | 
| 135 | - "http://" + MyApp.getInstance().getServiceIp() + action, "", | 136 | + "https://" + MyApp.getInstance().getServiceIp() + action, "", | 
| 136 | map, httpCallback, "data", DataTrans.class); | 137 | map, httpCallback, "data", DataTrans.class); | 
| 137 | 138 | ||
| 138 | if (testMOdel != null && testMOdel) { // 这个是调试弹框 | 139 | if (testMOdel != null && testMOdel) { // 这个是调试弹框 | 
| @@ -172,7 +173,7 @@ public class HttpHelper extends HttpHelperCore { | @@ -172,7 +173,7 @@ public class HttpHelper extends HttpHelperCore { | ||
| 172 | map.put("requestParam", requestParam); | 173 | map.put("requestParam", requestParam); | 
| 173 | LogUtil.i(TAG,"requestParam" + requestParam); | 174 | LogUtil.i(TAG,"requestParam" + requestParam); | 
| 174 | executeHttpPost( | 175 | executeHttpPost( | 
| 175 | - "http://" + MyApp.getInstance().getServiceIp() + action, "", | 176 | + "https://" + MyApp.getInstance().getServiceIp() + action, "", | 
| 176 | map, httpCallback, "data", DataTrans.class); | 177 | map, httpCallback, "data", DataTrans.class); | 
| 177 | 178 | ||
| 178 | if (testMOdel != null && testMOdel) { // 这个是调试弹框 | 179 | if (testMOdel != null && testMOdel) { // 这个是调试弹框 | 
| @@ -188,7 +189,41 @@ public class HttpHelper extends HttpHelperCore { | @@ -188,7 +189,41 @@ public class HttpHelper extends HttpHelperCore { | ||
| 188 | + ";", Toast.LENGTH_LONG); | 189 | + ";", Toast.LENGTH_LONG); | 
| 189 | } | 190 | } | 
| 190 | } | 191 | } | 
| 192 | + public void codeConsume(String orderId, String count, String password, | ||
| 193 | + String verifyPassword, String consumedSeq, List<ProductOfConsumeOrder> products, HttpCallback<DataTrans> httpCallback) { | ||
| 194 | + Long accountId = MyApp.getInstance().getAccountId(); | ||
| 195 | + ConsumeCodeRequest consumeCode = new ConsumeCodeRequest(orderId, | ||
| 196 | + count, password, verifyPassword, consumedSeq, products); | ||
| 197 | + consumeCode.setVer(MyApp.getInstance().getVer()); | ||
| 198 | + consumeCode.setVerType(MyApp.getInstance().getVerType()); | ||
| 199 | + consumeCode.setDevId(configBeans.get(0).getEc_mac()); | ||
| 200 | + consumeCode.setAccountId(accountId); | ||
| 201 | + consumeCode.setDevType(devType); | ||
| 202 | + | ||
| 203 | + HashMap<String, String> map = new HashMap<String, String>(); | ||
| 204 | + map.put("method", "onePassCodeConsumed"); | ||
| 205 | + String requestParam = DataTool.envelopeData(consumeCode, MyApp | ||
| 206 | + .getInstance().getSignkey(), MyApp.getInstance().getIdentity()); | ||
| 207 | + map.put("requestParam", requestParam); | ||
| 208 | + LogUtil.i(TAG,"requestParam" + requestParam); | ||
| 209 | + LogUtil.i(TAG,"服务器地址:" + MyApp.getInstance().getServiceIp()); | ||
| 210 | + executeHttpPost( | ||
| 211 | + "https://" + MyApp.getInstance().getServiceIp() + action, "", | ||
| 212 | + map, httpCallback, "data", DataTrans.class); | ||
| 191 | 213 | ||
| 214 | + if (testMOdel != null && testMOdel) { // 这个是调试弹框 | ||
| 215 | + if (type == null) { | ||
| 216 | + return; | ||
| 217 | + } | ||
| 218 | + if (activity == null) { | ||
| 219 | + return; | ||
| 220 | + } | ||
| 221 | + activity.MToast(mContext, "服务地址:" | ||
| 222 | + + MyApp.getInstance().getServiceIp() + ";" + "机器码:" | ||
| 223 | + + configBeans.get(0).getEc_mac() + ";" + "订单号:" + orderId | ||
| 224 | + + ";", Toast.LENGTH_LONG); | ||
| 225 | + } | ||
| 226 | + } | ||
| 192 | /** | 227 | /** | 
| 193 | * @param startdate | 228 | * @param startdate | 
| 194 | * @param enddate | 229 | * @param enddate | 
| @@ -212,7 +247,7 @@ public class HttpHelper extends HttpHelperCore { | @@ -212,7 +247,7 @@ public class HttpHelper extends HttpHelperCore { | ||
| 212 | map.put("requestParam", requestParam); | 247 | map.put("requestParam", requestParam); | 
| 213 | LogUtil.i(TAG,"requestParam" + requestParam); | 248 | LogUtil.i(TAG,"requestParam" + requestParam); | 
| 214 | executeHttpPost( | 249 | executeHttpPost( | 
| 215 | - "http://" + MyApp.getInstance().getServiceIp() + action, "", | 250 | + "https://" + MyApp.getInstance().getServiceIp() + action, "", | 
| 216 | map, httpCallback, "data", DataTrans.class); | 251 | map, httpCallback, "data", DataTrans.class); | 
| 217 | if (testMOdel != null && testMOdel) { // 这个是调试弹框 | 252 | if (testMOdel != null && testMOdel) { // 这个是调试弹框 | 
| 218 | if (type == null) { | 253 | if (type == null) { | 
| @@ -255,7 +290,7 @@ public class HttpHelper extends HttpHelperCore { | @@ -255,7 +290,7 @@ public class HttpHelper extends HttpHelperCore { | ||
| 255 | map.put("requestParam", requestParam); | 290 | map.put("requestParam", requestParam); | 
| 256 | LogUtil.i(TAG,"requestParam" + requestParam); | 291 | LogUtil.i(TAG,"requestParam" + requestParam); | 
| 257 | executeHttpPost( | 292 | executeHttpPost( | 
| 258 | - "http://" + MyApp.getInstance().getServiceIp() + action, "", | 293 | + "https://" + MyApp.getInstance().getServiceIp() + action, "", | 
| 259 | map, httpCallback, "data", DataTrans.class); | 294 | map, httpCallback, "data", DataTrans.class); | 
| 260 | if (testMOdel != null && testMOdel) { // 这个是调试弹框 | 295 | if (testMOdel != null && testMOdel) { // 这个是调试弹框 | 
| 261 | if (type == null) { | 296 | if (type == null) { | 
| @@ -305,7 +340,7 @@ public class HttpHelper extends HttpHelperCore { | @@ -305,7 +340,7 @@ public class HttpHelper extends HttpHelperCore { | ||
| 305 | map.put("requestParam", requestParam); | 340 | map.put("requestParam", requestParam); | 
| 306 | LogUtil.i(TAG,"requestParam" + requestParam); | 341 | LogUtil.i(TAG,"requestParam" + requestParam); | 
| 307 | executeHttpPost( | 342 | executeHttpPost( | 
| 308 | - "http://" + MyApp.getInstance().getServiceIp() + action, "", | 343 | + "https://" + MyApp.getInstance().getServiceIp() + action, "", | 
| 309 | map, httpCallback, "data", DataTrans.class); | 344 | map, httpCallback, "data", DataTrans.class); | 
| 310 | if (testMOdel != null && testMOdel) { // 这个是调试弹框 | 345 | if (testMOdel != null && testMOdel) { // 这个是调试弹框 | 
| 311 | if (type == null) { | 346 | if (type == null) { | 
| @@ -351,7 +386,7 @@ public class HttpHelper extends HttpHelperCore { | @@ -351,7 +386,7 @@ public class HttpHelper extends HttpHelperCore { | ||
| 351 | signkey, identity); | 386 | signkey, identity); | 
| 352 | map.put("requestParam", requestParam); | 387 | map.put("requestParam", requestParam); | 
| 353 | LogUtil.i(TAG,"requestParam" + requestParam); | 388 | LogUtil.i(TAG,"requestParam" + requestParam); | 
| 354 | - executeHttpPost("http://" + url + action, "", map, httpCallback, | 389 | + executeHttpPost("https://" + url + action, "", map, httpCallback, | 
| 355 | "data", DataTrans.class); | 390 | "data", DataTrans.class); | 
| 356 | } | 391 | } | 
| 357 | 392 | ||
| @@ -382,7 +417,7 @@ public class HttpHelper extends HttpHelperCore { | @@ -382,7 +417,7 @@ public class HttpHelper extends HttpHelperCore { | ||
| 382 | map.put("requestParam", requestParam); | 417 | map.put("requestParam", requestParam); | 
| 383 | LogUtil.i(TAG,"requestParam" + requestParam); | 418 | LogUtil.i(TAG,"requestParam" + requestParam); | 
| 384 | executeHttpPost( | 419 | executeHttpPost( | 
| 385 | - "http://" + MyApp.getInstance().getServiceIp() + action, "", | 420 | + "https://" + MyApp.getInstance().getServiceIp() + action, "", | 
| 386 | map, httpCallback, "data", DataTrans.class); | 421 | map, httpCallback, "data", DataTrans.class); | 
| 387 | 422 | ||
| 388 | 423 |