浏览代码

add avatar

ming 3 年之前
父节点
当前提交
7c15d12efd
共有 1 个文件被更改,包括 2 次插入5 次删除
  1. 2 5
      script_msg.js

+ 2 - 5
script_msg.js

@@ -25,10 +25,7 @@ $(".next").click(function(){
 	}	
 	dataOBJ = {"name":name_title,"text_content":txtARR,"image_urls":imgARR,"avatar":avatar}
 	objstr = JSON.stringify(dataOBJ);
-	obj2 = JSON.parse(objstr)
-	obj3 = JSON.stringify(obj2)
-  console.log(txtARR);
-  console.log(obj3);
+
   alert('資料已送出! 請耐心等候')
   $.ajax({
 	url: 'http://www.choozmo.com:8888/make_anchor_video_v2',
@@ -36,7 +33,7 @@ $(".next").click(function(){
 	dataType : 'json', // 預期從server接收的資料型態
   contentType : 'application/json; charset=utf-8', // 要送到server的資料型態
 	type: 'post',
-	data: obj3,
+	data: objstr,
 	success: function(suc_data) {
         
 	  },