瀏覽代碼

fix(callstats): userID sent with the feedback

dev1
hristoterezov 9 年之前
父節點
當前提交
b354a3e655
共有 1 個檔案被更改,包括 5 行新增6 行删除
  1. 5
    6
      modules/statistics/CallStats.js

+ 5
- 6
modules/statistics/CallStats.js 查看文件

411
         return;
411
         return;
412
     }
412
     }
413
 
413
 
414
-    var feedbackString =    '{"userID":"' + this.userID + '"' +
415
-                            ', "overall":' + overallFeedback +
416
-                            ', "comment": "' + detailedFeedback + '"}';
417
-    var feedbackJSON = JSON.parse(feedbackString);
418
-
419
-    callStats.sendUserFeedback(this.confID, feedbackJSON);
414
+    callStats.sendUserFeedback(this.confID, {
415
+        userID: this.userID,
416
+        overall: overallFeedback,
417
+        comment: detailedFeedback
418
+    });
420
 });
419
 });
421
 
420
 
422
 /**
421
 /**

Loading…
取消
儲存