caipin 5 years ago
parent
commit
d33a4e2eab
2 changed files with 14 additions and 6 deletions
  1. 13 5
      app/service/cloudEditionService.js
  2. 1 1
      views/cloud/curing.html

+ 13 - 5
app/service/cloudEditionService.js

@@ -61,13 +61,21 @@ var cloudService={
         	curingCloudList[cclKey].client_id=0
         	
         	falg=true;
-        	curingList.forEach(function(clValue,clKey){
-            	if(cclValue.mobile==clValue.mobile){
-            		curingCloudList[cclKey].client_id=clValue.client_id;
+        	for(var i=0;i<=curingList.length;i++){
+        		if(cclValue.mobile==curingList[i].mobile){
+            		curingCloudList[cclKey].client_id=curingList[i].client_id;
             		falg=false;
-            		throw new Error('end foreach curingList');
+            		break;
             	}
-            });
+        	}
+        	
+//        	curingList.forEach(function(clValue,clKey){
+//            	if(cclValue.mobile==clValue.mobile){
+//            		curingCloudList[cclKey].client_id=clValue.client_id;
+//            		falg=false;
+//            		throw new Error('end foreach curingList');
+//            	}
+//            });
         	if(falg){//新增本地扩展信息
         		sid=hash.hashDecode(STAFF.sid);
         		var obj = {

+ 1 - 1
views/cloud/curing.html

@@ -144,7 +144,7 @@
                                             <td><%= curing.clientInfo.clientname %></td>
                                             <td><%= curing.clientInfo.companyname %></td>
                                             
-                                            <td><%= curing.clientInfo.latest_login %></td>
+                                            <td><%= curing.latest_login %></td>
                                             <td></td>
                                             <td></td>
                                             <td><%= curing.addtime %></td>