/// <summary> /// 发布场景 /// </summary> /// <param name="context"></param> public void publish(HttpContext context) { string id = HttpContext.Current.Request["id"]; string name = HttpContext.Current.Request["name"]; string createUser = HttpContext.Current.Request["createUser"]; string type = HttpContext.Current.Request["type"]; string createTime = HttpContext.Current.Request["createTime"]; string cover = HttpContext.Current.Request["cover"]; string code = HttpContext.Current.Request["code"]; string description = HttpContext.Current.Request["description"]; sceneBll bll = new sceneBll(); if (bll.publish(id, name, createUser, type, createTime, cover, code, description) != "") { string msg = @" { 'success': true, 'code': 200, 'msg': 'success', 'obj': null, 'map': null, 'list': null }"; context.Response.Write(MentStr(msg)); } else { string msg = @" { 'success': false, 'code': 403, 'msg': '发布失败', 'obj': null, 'map': null, 'list': null }"; context.Response.Write(MentStr(msg)); } }