3; protected boolean parseResponse(String response) { 36
+                orderBean = new OrderBean();
48 37
 
49
-    @Override
50
-    public void onPhotoUploadSucceed(PhotoBean bean) {
51
-        if(bean.equals(currentPhoto)){
52
-            currentPhoto.uploadStatus =  PhotoBean.UploadStatus.STATUS_SUCCESS;
53
-            DBService.getInstance().updatePhotoBean(currentPhoto);
54
-            if(listener!=null){
55
-                listener.onPhotoUploaded(currentPhoto);
38
+                return super.parseResponse(response);
56 39
             }
57
-            currentPhoto = null;
58
-        }
59
-        startUpload();
60
-    }
61 40
 
62
-    @Override
63
-    public void onPhotoUploadFail(PhotoBean bean) {
64
-        if(bean.equals(currentPhoto)){
65
-            currentPhoto.uploadStatus =  PhotoBean.UploadStatus.STATUS_ERROR;
66
-            DBService.getInstance().updatePhotoBean(currentPhoto);
67
-            if(listener!=null){
68
-                listener.onPhotoUploadError(currentPhoto);
41
+            @Override
42
+            protected void onPostSuccess() {
43
+                super.onPostSuccess();
44
+                onNewOrderArrived(orderBean);
69 45
             }
70
-            currentPhoto = null;
71
-        }
72
-        startUpload();
73
-    }
74 46
 
75
-    public void setPhotoUploadListener(PhotoUploadListener listener){
76
-        this.listener = listener;
47
+            @Override
48
+            protected void onPostFail() {
49
+                super.onPostFail();
50
+            }
51
+        }.executeOnExecutor(ThreadExecutor.getInstance().getExecutor());
52
+
77 53
     }
78 54
 
79
-    public interface PhotoUploadListener{
80
-        void onPhotoUploaded(PhotoBean bean);
81
-        void onPhotoUploadError(PhotoBean bean);
55
+    private void onNewOrderArrived(OrderBean bean){
56
+
82 57
     }
83 58
 
84
-    public class MyBinder extends Binder {
59
+    public class OrderServiceBinder extends Binder {
85 60
 
86 61
         public OrderDealService getService(){
87 62
             return OrderDealService.this;

+ 1 - 0
app/src/main/java/ai/pai/lensman/utils/UrlContainer.java

@@ -37,6 +37,7 @@ public class UrlContainer {
37 37
 
38 38
     public static final String BRIEFS_URL = HOST_URL+"l/brief";
39 39
 
40
+    public static final String QUERY_ORDER_URL = HOST_URL+"l/query";
40 41
 
41 42
 
42 43
 }

kodo - Gogs: Go Git Service

Keine Beschreibung

aboutus.html 1.7KB

    <!doctype html> <html> <head> <meta charset="UTF-8"> <title>拍爱 PAI.AI 关于我们</title> <meta name="keywords" content="摄影 图片 影像 分享 交流 社交 交友 摄影师 女性 孩子 亲子 旅行 旅游 约拍 iphone android app" /> <link href="css/layout.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="js/jquery.min.js"></script> </head> <body> <div id="header"> <div class="content"> <a href="index.html" target="_self" class="logo"></a> <div class="navigation"> <a href="contactus.html" target="_self" >联系我们</a> <a href="joinus.html" target="_self" >加入拍爱</a> <a href="aboutus.html" target="_self"class="current" >关于我们</a> <a href="index.html" target="_self" >首页</a> </div> </div> </div> <div id="container" > <div class="content aboutus"> <div class="container_box"> <p><strong>关于拍爱 PAI.AI </strong><br> 一起走过的路,<br> 一起看过的美景,<br> 一起醉过的Party,<br> ……<br> 回忆容易消逝,<br> 一起拍,<br> 照片让爱历久弥新。<br> 拍爱——用心拍,分享爱<br> 拍爱让您和小伙伴更便捷、更快速——几乎是一瞬间,分享拍摄的照片。<br> 不论是聚会,还是旅行。<br> 拍摄即分享。<br> 你可以对照片点赞、评论,零距离互动。<br> 不论手机丢失还是损坏,<br> 照片一直在拍爱等你。 </p> </div> </div> </div> <div id="footer"> <div class="content foot"> <a href="aboutus.html" target="_self" >关于我们</a> <span>|</span> <a href="contactus.html" target="_self" >联系我们</a> ©2016 拍爱 PAI.AI 琼ICP备16000076号 </div> </div> </body> </html>