|
@@ -784,6 +784,32 @@ s.resp.reset_password = function(fd,msg_body,user_data)
|
|
|
end
|
|
|
return tools.response(fd,200,cjson.encode({code=10000,msg = "修改密码成功!"}))
|
|
|
end
|
|
|
+
|
|
|
+s.resp.update_generate_video_custom = function(fd,msg_body,user_data)
|
|
|
+ msg_body = cjson.decode(msg_body)
|
|
|
+ if type(user_data) ~= "table" then
|
|
|
+ return tools.response(fd, 200, "token error!")
|
|
|
+ end
|
|
|
+ local user_id = user_data.user_id
|
|
|
+ -- tools.dump(msg_body)
|
|
|
+ if user_id==nil then
|
|
|
+ return tools.response(fd,100,"user_id==nil update_generate_video_custom !")
|
|
|
+ end
|
|
|
+ msg_body["user_id"] = user_id
|
|
|
+ local isok ,key = tools.checkData({"data"},msg_body)
|
|
|
+ if not isok then
|
|
|
+ return tools.response(fd,200,cjson.encode({code=9001,msg = string.format("缺少字段: %s.", key)}))
|
|
|
+ end
|
|
|
+ isok = skynet.call("dbmgr","lua","on_recv","update_generate_video_custom",{
|
|
|
+ data = msg_body.data,
|
|
|
+ user_id = user_id}
|
|
|
+ )
|
|
|
+
|
|
|
+ if not isok then
|
|
|
+ return tools.response(fd,200,cjson.encode({code=10001,msg = "更新失败!"}))
|
|
|
+ end
|
|
|
+ return tools.response(fd,200,cjson.encode({code=10000,msg = "更新成功!"}))
|
|
|
+end
|
|
|
--踢掉
|
|
|
s.resp.kick = function(fd,msg_body,user_data)
|
|
|
|