-new"> 23
import com.electric.chargingpile.activity.MainMapActivity;
@ -112,7 +113,10 @@ public class NewMyMessageFragment extends Fragment {
112 113
            e.printStackTrace();
113 114
        }
114 115
        String replace = URLEncoder.encode(encode_token);
115
        String url = MainApplication.url + "/zhannew/basic/web/index.php/tpappcomments/getmylist?userid=" + MainApplication.userId + "&token=" + replace + "&phone=" + MainApplication.userPhone + "&password=" + URLEncoder.encode(MainApplication.userPassword);
116
        String url = MainApplication.url + "/zhannew/basic/web/index.php/tpappcomments/getmylist?userid="
117
                + MainApplication.userId + "&token=" + replace + "&phone=" + MainApplication.userPhone
118
                + "&password=" + URLEncoder.encode(MainApplication.userPassword)
119
                + "&version_code=" + BuildConfig.VERSION_NAME;
116 120
        Log.e("url====", url);
117 121
        OkHttpUtils.get()
118 122
                .url(url)

+ 7 - 31
app/src/main/java/com/electric/chargingpile/fragment/ZhanCommentFragment.java

@ -22,6 +22,7 @@ import android.widget.RelativeLayout;
22 22
import android.widget.TextView;
23 23
import android.widget.Toast;
24 24
25
import com.electric.chargingpile.BuildConfig;
25 26
import com.electric.chargingpile.R;
26 27
import com.electric.chargingpile.activity.ChargingQianDaoActivity;
27 28
import com.electric.chargingpile.activity.NewZhanDetailsActivity;
@ -227,7 +228,7 @@ public class ZhanCommentFragment extends Fragment {
227 228
228 229
    @Subscribe
229 230
    public void initCommentData(RankinglistRefreshEvent event) {
230
        String url = MainApplication.url + "/zhannew/basic/web/index.php/tpappcomments/get-comments?zhanid=" + NewZhanDetailsActivity.zhan_id + "&page=1";
231
        String url = MainApplication.url + "/zhannew/basic/web/index.php/tpappcomments/get-comments?zhanid=" + NewZhanDetailsActivity.zhan_id + "&page=1"+"&version_code=" + BuildConfig.VERSION_NAME;
231 232
//        String url = MainApplication.url+"/zhannew/basic/web/index.php/tpappcomments/get-comments?zhanid=" + NewZhanDetailsActivity.zhan_id + "&page=1";
232 233
        Log.e(TAG, "getCommentsData=" + url);
233 234
        OkHttpUtils.get().url(url)
@ -255,15 +256,7 @@ public class ZhanCommentFragment extends Fragment {
255 256
256 257
                                for (int j = 0; j < jsonArray.length(); j++) {
257 258
                                    JSONObject jsonObject = (JSONObject) jsonArray.opt(j);
258
                                    String is_play = TextUtils.isEmpty( jsonObject.getString("is_play"))?"": jsonObject.getString("is_play")  ; //0 审核未通过 item隐藏,1 审核通过,item显示
259
                                    String type = TextUtils.isEmpty(jsonObject.getString("type"))?"":jsonObject.getString("type"); //23 视频,24 图片
260
                                    if (type.equals("23")){
261
                                        if (is_play.equals("1")){
262
                                            datas.add(jsonObject);
263
                                        }
264
                                    }else {
265
                                        datas.add(jsonObject);
266
                                    }
259
                                    datas.add(jsonObject);
267 260
                                }
268 261
//                                Log.e(TAG, "dealData: size=" + datas.size());
269 262
                                if (datas.size() == 0) {
@ -295,7 +288,7 @@ public class ZhanCommentFragment extends Fragment {
295 288
296 289
297 290
    public void getCommentsData() {
298
        String url = MainApplication.url + "/zhannew/basic/web/index.php/tpappcomments/get-comments?zhanid=" + NewZhanDetailsActivity.zhan_id + "&page=1";
291
        String url = MainApplication.url + "/zhannew/basic/web/index.php/tpappcomments/get-comments?zhanid=" + NewZhanDetailsActivity.zhan_id + "&page=1"+"&version_code=" + BuildConfig.VERSION_NAME;
299 292
        OkHttpUtils.get().url(url)
300 293
                .build().connTimeOut(6000).readTimeOut(6000)
301 294
                .execute(new StringCallback() {
@ -314,16 +307,7 @@ public class ZhanCommentFragment extends Fragment {
314 307
                                JSONArray jsonArray = new JSONArray(commentData);
315 308
                                for (int j = 0; j < jsonArray.length(); j++) {
316 309
                                    JSONObject jsonObject = (JSONObject) jsonArray.opt(j);
317
318
                                    String is_play = TextUtils.isEmpty( jsonObject.getString("is_play"))?"": jsonObject.getString("is_play")  ; //0 审核未通过 item隐藏,1 审核通过,item显示
319
                                    String type = TextUtils.isEmpty(jsonObject.getString("type"))?"":jsonObject.getString("type"); //23 视频,24 图片
320
                                     if (type.equals("23")){
321
                                        if (is_play.equals("1")){
322
                                            datas.add(jsonObject);
323
                                        }
324
                                    }else{
325
                                        datas.add(jsonObject);
326
                                    }
310
                                    datas.add(jsonObject);
327 311
                                }
328 312
                                if (datas.size() == 0) {
329 313
                                    ll_tishi.setVisibility(View.VISIBLE);
@ -345,7 +329,7 @@ public class ZhanCommentFragment extends Fragment {
345 329
    }
346 330
347 331
    private void getPullToRefreshData(final boolean isClear) {
348
        String url = MainApplication.url + "/zhannew/basic/web/index.php/tpappcomments/get-comments?zhanid=" + NewZhanDetailsActivity.zhan_id + "&page=" + index;
332
        String url = MainApplication.url + "/zhannew/basic/web/index.php/tpappcomments/get-comments?zhanid=" + NewZhanDetailsActivity.zhan_id + "&page=" + index+"&version_code=" + BuildConfig.VERSION_NAME;
349 333
        OkHttpUtils.get().url(url)
350 334
                .build().connTimeOut(6000).readTimeOut(6000)
351 335
                .execute(new StringCallback() {
@ -374,15 +358,7 @@ public class ZhanCommentFragment extends Fragment {
374 358
375 359
                                for (int j = 0; j < jsonArray.length(); j++) {
376 360
                                    JSONObject jsonObject = (JSONObject) jsonArray.opt(j);
377
                                    String is_play = TextUtils.isEmpty( jsonObject.getString("is_play"))?"": jsonObject.getString("is_play")  ; //0 审核未通过 item隐藏,1 审核通过,item显示
378
                                    String type = TextUtils.isEmpty(jsonObject.getString("type"))?"":jsonObject.getString("type"); //23 视频,24 图片
379
                                    if (type.equals("23")){
380
                                        if (is_play.equals("1")){
381
                                            datas.add(jsonObject);
382
                                        }
383
                                    }else{
384
                                        datas.add(jsonObject);
385
                                    }
361
                                    datas.add(jsonObject);
386 362
                                }
387 363
388 364
                                if (isClear == false) {

dudu/cdzApp - Gogs: Go Git Service

466 Commits (test_tmp)

Autor SHA1 Mensaje Fecha
  huyuguo 23ee57cce4 私人桩管理修改完成 %!s(int64=6) %!d(string=hace) años
  huyuguo 272a02a5f3 添加公共桩bug修改 %!s(int64=6) %!d(string=hace) años
  huyuguo 6f52f6ddb3 bug修改 %!s(int64=6) %!d(string=hace) años
  huyuguo 00ed8e72ac 路径规划修改 %!s(int64=6) %!d(string=hace) años
  huyuguo 008cc9eddf 地图缩放修改 %!s(int64=6) %!d(string=hace) años
  huyuguo f99da198b0 路径规划优化 %!s(int64=6) %!d(string=hace) años
  huyuguo 988cf7a2ed Update RoutePlanMapActivity.java %!s(int64=6) %!d(string=hace) años
  huyuguo 31983f6f69 代码优化 %!s(int64=6) %!d(string=hace) años
  huyuguo 03b7504730 代码优化 %!s(int64=6) %!d(string=hace) años
  huyuguo d7c92074bd 搜索功能开发完成 %!s(int64=6) %!d(string=hace) años
  huyuguo 6ca9b22003 查找站点 %!s(int64=6) %!d(string=hace) años
  huyuguo 24fea00ec7 站点搜索开放 %!s(int64=6) %!d(string=hace) años
  huyuguo 6583b0289e 代码更新 %!s(int64=6) %!d(string=hace) años
  huyuguo d85c709efe 推荐功能页面开发完成 %!s(int64=6) %!d(string=hace) años
  huyuguo 03407e2176 代码更新 %!s(int64=6) %!d(string=hace) años
  huyuguo 71aeae060b 地址搜索修改 %!s(int64=6) %!d(string=hace) años
  huyuguo 8cca3e0d89 充值bug修复 %!s(int64=6) %!d(string=hace) años
  huyuguo 5da7027f21 编辑私人桩开发完成 %!s(int64=6) %!d(string=hace) años
  huyuguo 89d6853213 管理私人桩开发完成 %!s(int64=6) %!d(string=hace) años
  huyuguo 11d614e785 更新功能样式修改完成 %!s(int64=6) %!d(string=hace) años
  huyuguo b20d745808 桩详情页面开发完成 %!s(int64=6) %!d(string=hace) años
  huyuguo d5730d80c6 详情页快慢桩显示样式修改 %!s(int64=6) %!d(string=hace) años
  huyuguo b3b68355f5 电价详情开发完成 %!s(int64=6) %!d(string=hace) años
  huyuguo d820aac519 电价详情开发 %!s(int64=6) %!d(string=hace) años
  huyuguo 45611a4d09 气泡页快慢充数据显示样式修改 %!s(int64=6) %!d(string=hace) años
  huyuguo 7e0613ff16 气泡页分时电价显示 %!s(int64=6) %!d(string=hace) años
  huyuguo b6375b8b36 代码更新 %!s(int64=6) %!d(string=hace) años
  huyuguo 54df60fe50 提醒 %!s(int64=6) %!d(string=hace) años
  huyuguo 319397b60f 配置信息优化 %!s(int64=6) %!d(string=hace) años
  huyuguo e1ca1e4e50 配置信息更改 %!s(int64=6) %!d(string=hace) años
  huyuguo 12be06a50d 配置文件修改 %!s(int64=6) %!d(string=hace) años
  huyuguo 2336e74bea Merge branch 'master' of http://59.110.68.162:3000/dudu/cdzApp %!s(int64=6) %!d(string=hace) años
  huyuguo de269dfd50 提交 %!s(int64=6) %!d(string=hace) años
  huyuguo 38214819ea Revert "扫码支付bug修改" %!s(int64=6) %!d(string=hace) años
  huyuguo 0ba865f275 Merge branch 'master' of http://59.110.68.162:3000/dudu/cdzApp %!s(int64=6) %!d(string=hace) años
  huyuguo b0d5d8432c 版本信息修改 %!s(int64=6) %!d(string=hace) años
  huyuguo 67f8811dbc Merge branch 'master' of http://59.110.68.162:3000/dudu/cdzApp %!s(int64=6) %!d(string=hace) años
  huyuguo 756a5867ed 扫码问题解决 %!s(int64=6) %!d(string=hace) años
  huyuguo 6b9e47955f 更新版本 %!s(int64=6) %!d(string=hace) años
  huyuguo bffced235f 修改最低支持版本为7.0 %!s(int64=6) %!d(string=hace) años
  huyuguo b45d5a16d6 高德地图SDK更新 %!s(int64=6) %!d(string=hace) años
  huyuguo c2b1368794 扫码支付bug修改 %!s(int64=6) %!d(string=hace) años
  huyuguo 4fd7d2f253 原因为空不显示 %!s(int64=6) %!d(string=hace) años
  huyuguo cff54c978f bug修复 %!s(int64=6) %!d(string=hace) años
  huyuguo f0b6d4f922 bug修复 %!s(int64=6) %!d(string=hace) años
  huyuguo 6b98fb3afb 运营商信息获取 %!s(int64=6) %!d(string=hace) años
  huyuguo b72a712313 bug修改 %!s(int64=6) %!d(string=hace) años
  huyuguo 002222945b 弹屏广告bug修复 %!s(int64=6) %!d(string=hace) años
  huyuguo dcf0968c1c Update build.gradle %!s(int64=6) %!d(string=hace) años
  huyuguo 2ccff5dbe6 配置优化 %!s(int64=6) %!d(string=hace) años
Eric Dean - Gogs: Go Git Service
Eric Dean fish-aquarium-calculator1992
cdzApp - Gogs: Go Git Service

充电桩app代码

hy 0e5aebc0c1 将所有gradle升级至31 4 ans auparavant
..
src b98aa2e34f 代码修改 6 ans auparavant
.gitignore e1cf244fe0 remove Useless dependence 7 ans auparavant
build.gradle 0e5aebc0c1 将所有gradle升级至31 4 ans auparavant
proguard-rules.pro e1cf244fe0 remove Useless dependence 7 ans auparavant