| | |
| | | int pubid = PubDBHelper.GetPushlishId(meta.id); |
| | | if (pubid > 0) |
| | | { |
| | | PubDBHelper.UpdatePublish(pubid, meta.name, args.userId, null); |
| | | PubDBHelper.UpdatePublish(pubid, meta.name, args.userId, null, GetReleaseUrl(meta, meta.verid)); |
| | | return pubid; |
| | | } |
| | | |
| | |
| | | /// <summary> |
| | | /// 更新发布数据 |
| | | /// </summary> |
| | | public static int UpdatePublish(int pubid, string name, int userId, string geom) |
| | | public static int UpdatePublish(int pubid, string name, int userId, string geom, string url = null) |
| | | { |
| | | string str = null == geom ? "" : string.Format(", geom={0}", geom); |
| | | str += null == url ? "" : string.Format(", url='{0}'", url); |
| | | string sql = string.Format("update lf.sys_publish set name=@name, update_user=@userId, update_time=now(){0} where id=@id", str); |
| | | |
| | | DbParameter dp1 = new NpgsqlParameter("@name", name); |
| | |
| | | }); |
| | | } |
| | | |
| | | // 测试Fbx * |
| | | // 测试Fbx |
| | | function convert2() { |
| | | var data = { token: token, ids: [1522], depcode: "000305", dircode: "0102", userId: 1 }; |
| | | var data = { token: token, ids: [8362], depcode: "000305", dircode: "0102", userId: 1 }; |
| | | ajax("Convert/ToTileset", "POST", JSON.stringify(data), null, null, function (rs) { |
| | | alert("code = " + rs.code + ", msg = " + rs.msg + ", result = " + rs.result); |
| | | console.log(rs); |
| | |
| | | |
| | | // 测试SG |
| | | function toSG() { |
| | | var data = { token: token, ids: [10516], depcode: "000305", dircode: "0102", userId: 1 }; // [1523, 1525] |
| | | var data = { token: token, ids: [10516], depcode: "000305", dircode: "0102", userId: 1 }; |
| | | ajax("Convert/ToSG", "POST", JSON.stringify(data), null, null, function (rs) { |
| | | alert("code = " + rs.code + ", msg = " + rs.msg + ", result = " + rs.result); |
| | | console.log(rs); |