dao пре 4 дана
родитељ
комит
af72bbe347
4 измењених фајлова са 241 додато и 204 уклоњено
  1. +44
    -7
      Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Hetian/HeTianApi.cs
  2. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.WebApi/Web.config
  3. +195
    -195
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/manifest.json
  4. +1
    -1
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/my.vue

+ 44
- 7
Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Hetian/HeTianApi.cs Прегледај датотеку

@@ -17,15 +17,18 @@ using System.Net;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Ajax.Utilities;
using DotNetCasClient.Configuration;
using System.Web;

namespace Learun.Application.WebApi.Modules.Hetian
{
public class HeTianApi : BaseApi
{
//ht 和田 sx 实习
public HeTianApi() : base("/api/ht/")
public HeTianApi() : base("/api/ht")
{
Post["/ticket"] = CheckTicket;
Get["/out"] = Logout;
Get["/sx/comp"] = GetComp;// 实习单位列表
Get["/sx/pos"] = GetPos;// 实习岗位列表
Get["/sx/list"] = GetBaomin;// 获取报名列表
@@ -59,6 +62,10 @@ namespace Learun.Application.WebApi.Modules.Hetian
if (!string.IsNullOrEmpty(ticket))
{
string validationUrl = UrlUtil.ConstructValidateUrl(ticket, CasAuthentication.Gateway, CasAuthentication.Renew, new NameValueCollection());
var url= new EnhancedUriBuilder(EnhancedUriBuilder.Combine(CasAuthentication.CasServerUrlPrefix, "serviceValidate"));

url.QueryItems.Add("service", HttpUtility.UrlEncode(CasAuthentication.ServerName));
url.QueryItems.Add("ticket", HttpUtility.UrlEncode(ticket));
LogHelper.WriteToLog($"validationUrl:{validationUrl}");
var a = PerformHttpGet(validationUrl, true);
LogHelper.WriteToLog($"a :{a}");
@@ -139,6 +146,36 @@ namespace Learun.Application.WebApi.Modules.Hetian
}
return Fail("未确定用户");
}

private Response Logout(dynamic _)
{
var acc = userInfo.account;
LogEntity logEntity = new LogEntity();
logEntity.F_CategoryId = 1;
logEntity.F_OperateTypeId = ((int)OperationType.Exit).ToString();
logEntity.F_OperateType = EnumAttribute.GetDescription(OperationType.Exit);
logEntity.F_OperateAccount = userInfo.account + "(" + userInfo.realName + ")";
logEntity.F_OperateUserId = userInfo.userId;
logEntity.F_ExecuteResult = 1;
logEntity.F_ExecuteResultJson = "退出系统";
logEntity.F_Module = "登录";
logEntity.F_Description = "APP";
logEntity.WriteLog();
OperatorHelper.Instance.EmptyCurrent(token, loginMark);
//Session.Abandon(); //清除当前会话
//Session.Clear(); //清除当前浏览器所有Session
//OperatorHelper.Instance.EmptyCurrent();

if (CasAuthentication.ServiceTicketManager != null)
{
CasAuthentication.ClearAuthCookie();
//Session.Clear();
}
var singleSignOutRedirectUrl = $"{CasClientConfiguration.Config.CasServerUrlPrefix}logout?service={HttpUtility.UrlEncode(CasClientConfiguration.Config.ServerName + "/")}";
//HttpGet(singleSignOutRedirectUrl);
var d = new { info = singleSignOutRedirectUrl };
return Success(d);
}
/// <summary>
/// 获取IP
/// </summary>
@@ -229,7 +266,7 @@ namespace Learun.Application.WebApi.Modules.Hetian
/// 实习单位
/// </summary>
/// <returns></returns>
public Response GetComp(dynamic _)
private Response GetComp(dynamic _)
{
var data = dataSourceIBLL.GetDataTable("PracticeBase", "");
return Success(data);
@@ -238,7 +275,7 @@ namespace Learun.Application.WebApi.Modules.Hetian
/// 实习岗位
/// </summary>
/// <returns></returns>
public Response GetPos(dynamic _)
private Response GetPos(dynamic _)
{
var dw = GetReqData();
var data = dataSourceIBLL.GetDataTable("PBPost", "PBID='" + dw + "'");
@@ -250,7 +287,7 @@ namespace Learun.Application.WebApi.Modules.Hetian
/// </summary>
/// <param name="_"></param>
/// <returns></returns>
public Response GetBaomin(dynamic _)
private Response GetBaomin(dynamic _)
{
var id = GetReqData();
var list = internShipSignUpIBLL.GetMyList(userInfo.account,id);
@@ -288,7 +325,7 @@ namespace Learun.Application.WebApi.Modules.Hetian
/// </summary>
/// <param name="_"></param>
/// <returns></returns>
public Response Baomin(dynamic _)
private Response Baomin(dynamic _)
{
var queryJson = GetReqData();
var queryParam = queryJson.ToObject<InternShipSignUpEntity>();
@@ -302,7 +339,7 @@ namespace Learun.Application.WebApi.Modules.Hetian
/// </summary>
/// <param name="_"></param>
/// <returns></returns>
public Response GetZongjie(dynamic _)
private Response GetZongjie(dynamic _)
{
var list = internShipSummaryIBLL.GetMy(userInfo.account);

@@ -313,7 +350,7 @@ namespace Learun.Application.WebApi.Modules.Hetian
/// </summary>
/// <param name="_"></param>
/// <returns></returns>
public Response Zongjie(dynamic _)
private Response Zongjie(dynamic _)
{
var queryJson = GetReqData();
var queryParam = queryJson.ToObject<InternShipSummaryEntity>();


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.WebApi/Web.config Прегледај датотеку

@@ -126,5 +126,5 @@
</dataSources>
</version>
</oracle.manageddataaccess.client>
<casClientConfig casServerLoginUrl="http://authserver.htpt.edu.cn/authserver/login" casServerUrlPrefix="http://authserver.htpt.edu.cn/authserver/" serverName="http://sxjy.htpt.edu.cn:8000/" notAuthorizedUrl="~/NotAuthorized.aspx" cookiesRequiredUrl="~/CookiesRequired.aspx" redirectAfterValidation="true" gateway="false" renew="false" singleSignOut="true" ticketTimeTolerance="5000" ticketValidatorName="Cas20" serviceTicketManager="CacheServiceTicketManager" gatewayStatusCookieName="CasGatewayStatus" />
<casClientConfig casServerLoginUrl="http://authserver.htpt.edu.cn/authserver/login" casServerUrlPrefix="http://authserver.htpt.edu.cn/authserver/" serverName="http://sxjy.htpt.edu.cn" notAuthorizedUrl="~/NotAuthorized.aspx" cookiesRequiredUrl="~/CookiesRequired.aspx" redirectAfterValidation="true" gateway="false" renew="false" singleSignOut="true" ticketTimeTolerance="5000" ticketValidatorName="Cas20" serviceTicketManager="CacheServiceTicketManager" gatewayStatusCookieName="CasGatewayStatus" />
</configuration>

+ 195
- 195
Learun.Framework.Ultimate V7/LearunApp-2.2.0/manifest.json Прегледај датотеку

@@ -1,196 +1,196 @@
{
"name": "智慧校园",
"appid": "__UNI__7C24C09",
"description": "智慧校园移动端",
"versionName": "2.2.0.250110",
"versionCode": 20200,
"transformPx": false,
/* 5+App特有相关 */
"app-plus": {
"usingComponents": true,
"softinputNavBar": "none",
"splashscreen": {
"alwaysShowBeforeRender": true,
"waiting": false,
"autoclose": true,
"delay": 0
},
/* 模块配置 */
"modules": {},
/* 应用发布信息 */
"distribute": {
/* android打包配置 */
"android": {
"permissions": [
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
"<uses-permission android:name=\"android.permission.READ_CONTACTS\"/>",
"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
"<uses-permission android:name=\"android.permission.WRITE_CONTACTS\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.CAMERA\"/>",
"<uses-permission android:name=\"android.permission.RECORD_AUDIO\"/>",
"<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
"<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>",
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
"<uses-permission android:name=\"android.permission.CALL_PHONE\"/>",
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>",
"<uses-feature android:name=\"android.hardware.camera\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/>",
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
]
},
/* ios打包配置 */
"ios": {
"privacyDescription": {
"NSPhotoLibraryUsageDescription": "工作流程中需要相册权限以选择并上传图片",
"NSPhotoLibraryAddUsageDescription": "将图片保存到本机",
"NSCameraUsageDescription": "工作流程中需要相机权限以选择并上传图片"
},
"idfa": false
},
/* SDK配置 */
"sdkConfigs": {
"ad": {}
},
"icons": {
"android": {
"hdpi": "unpackage/res/icons/72x72.png",
"xhdpi": "unpackage/res/icons/96x96.png",
"xxhdpi": "unpackage/res/icons/144x144.png",
"xxxhdpi": "unpackage/res/icons/192x192.png"
},
"ios": {
"appstore": "unpackage/res/icons/1024x1024.png",
"ipad": {
"app": "unpackage/res/icons/76x76.png",
"app@2x": "unpackage/res/icons/152x152.png",
"notification": "unpackage/res/icons/20x20.png",
"notification@2x": "unpackage/res/icons/40x40.png",
"proapp@2x": "unpackage/res/icons/167x167.png",
"settings": "unpackage/res/icons/29x29.png",
"settings@2x": "unpackage/res/icons/58x58.png",
"spotlight": "unpackage/res/icons/40x40.png",
"spotlight@2x": "unpackage/res/icons/80x80.png"
},
"iphone": {
"app@2x": "unpackage/res/icons/120x120.png",
"app@3x": "unpackage/res/icons/180x180.png",
"notification@2x": "unpackage/res/icons/40x40.png",
"notification@3x": "unpackage/res/icons/60x60.png",
"settings@2x": "unpackage/res/icons/58x58.png",
"settings@3x": "unpackage/res/icons/87x87.png",
"spotlight@2x": "unpackage/res/icons/80x80.png",
"spotlight@3x": "unpackage/res/icons/120x120.png"
}
}
},
"splashscreen": {
"android": {
"xxhdpi": "G:/薛礼根/2018/数字化校园/数字化校园png/北京泉江/数字化校园APP----引导页1080_1882.png",
"xhdpi": "G:/薛礼根/2018/数字化校园/数字化校园png/北京泉江/数字化校园APP----引导页720_1242.png",
"hdpi": "G:/薛礼根/2018/数字化校园/数字化校园png/北京泉江/数字化校园APP----引导页480_762.png"
},
"ios": {
"iphone": {
"portrait-896h@3x": "res/startup/startup-ios-x.png",
"portrait-896h@2x": "res/startup/startup-ios-x.png",
"iphonex": "res/startup/startup-ios-x.png",
"retina55": "res/startup/startup-ios-16-9.png",
"retina47": "res/startup/startup-ios-16-9.png",
"retina40": "res/startup/startup-ios-3-2.png",
"retina35": "res/startup/startup-ios-3-2.png"
}
}
}
},
"uniStatistics": {
"enable": false
},
"nvueLaunchMode": "fast"
},
/* 快应用特有相关 */
"quickapp": {},
/* 小程序特有相关 */
"mp-weixin": {
"appid": "wxbc18c9bf92c86d28",
"setting": {
"urlCheck": false,
"es6": true,
"postcss": false,
"minified": true
},
"usingComponents": true,
"optimization": {
"subPackages": true
},
"uniStatistics": {
"enable": false
}
},
"mp-alipay": {
"usingComponents": true,
"component2": true,
"enableParallelLoader": true,
"uniStatistics": {
"enable": false
},
"appid": ""
},
"mp-dingtalk": {
"usingComponents": true,
"component2": true,
"enableParallelLoader": true,
"uniStatistics": {
"enable": false
},
"appid": ""
},
"mp-baidu": {
"usingComponents": true,
"uniStatistics": {
"enable": false
}
},
"mp-toutiao": {
"usingComponents": true,
"uniStatistics": {
"enable": false
}
},
"h5": {
"uniStatistics": {
"enable": false
},
"router": {
"mode": "hash",
"base": ""
},
"title": "数字化智慧校园",
"template": "index.html",
"optimization": {
"treeShaking": {
"enable": false
}
},
"domain": "testapp.bjquanjiang.com",
"devServer": {
"port": 80,
"https": false
}
},
"mp-qq": {
"uniStatistics": {
"enable": false
}
},
"uniStatistics": {
"enable": false
}
}
"name" : "智慧校园",
"appid" : "__UNI__7C24C09",
"description" : "智慧校园移动端",
"versionName" : "2.2.0.250115",
"versionCode" : 20200,
"transformPx" : false,
/* 5+App特有相关 */
"app-plus" : {
"usingComponents" : true,
"softinputNavBar" : "none",
"splashscreen" : {
"alwaysShowBeforeRender" : true,
"waiting" : false,
"autoclose" : true,
"delay" : 0
},
/* 模块配置 */
"modules" : {},
/* 应用发布信息 */
"distribute" : {
/* android打包配置 */
"android" : {
"permissions" : [
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
"<uses-permission android:name=\"android.permission.READ_CONTACTS\"/>",
"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
"<uses-permission android:name=\"android.permission.WRITE_CONTACTS\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.CAMERA\"/>",
"<uses-permission android:name=\"android.permission.RECORD_AUDIO\"/>",
"<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
"<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>",
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
"<uses-permission android:name=\"android.permission.CALL_PHONE\"/>",
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>",
"<uses-feature android:name=\"android.hardware.camera\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/>",
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
]
},
/* ios打包配置 */
"ios" : {
"privacyDescription" : {
"NSPhotoLibraryUsageDescription" : "工作流程中需要相册权限以选择并上传图片",
"NSPhotoLibraryAddUsageDescription" : "将图片保存到本机",
"NSCameraUsageDescription" : "工作流程中需要相机权限以选择并上传图片"
},
"idfa" : false
},
/* SDK配置 */
"sdkConfigs" : {
"ad" : {}
},
"icons" : {
"android" : {
"hdpi" : "unpackage/res/icons/72x72.png",
"xhdpi" : "unpackage/res/icons/96x96.png",
"xxhdpi" : "unpackage/res/icons/144x144.png",
"xxxhdpi" : "unpackage/res/icons/192x192.png"
},
"ios" : {
"appstore" : "unpackage/res/icons/1024x1024.png",
"ipad" : {
"app" : "unpackage/res/icons/76x76.png",
"app@2x" : "unpackage/res/icons/152x152.png",
"notification" : "unpackage/res/icons/20x20.png",
"notification@2x" : "unpackage/res/icons/40x40.png",
"proapp@2x" : "unpackage/res/icons/167x167.png",
"settings" : "unpackage/res/icons/29x29.png",
"settings@2x" : "unpackage/res/icons/58x58.png",
"spotlight" : "unpackage/res/icons/40x40.png",
"spotlight@2x" : "unpackage/res/icons/80x80.png"
},
"iphone" : {
"app@2x" : "unpackage/res/icons/120x120.png",
"app@3x" : "unpackage/res/icons/180x180.png",
"notification@2x" : "unpackage/res/icons/40x40.png",
"notification@3x" : "unpackage/res/icons/60x60.png",
"settings@2x" : "unpackage/res/icons/58x58.png",
"settings@3x" : "unpackage/res/icons/87x87.png",
"spotlight@2x" : "unpackage/res/icons/80x80.png",
"spotlight@3x" : "unpackage/res/icons/120x120.png"
}
}
},
"splashscreen" : {
"android" : {
"xxhdpi" : "G:/薛礼根/2018/数字化校园/数字化校园png/北京泉江/数字化校园APP----引导页1080_1882.png",
"xhdpi" : "G:/薛礼根/2018/数字化校园/数字化校园png/北京泉江/数字化校园APP----引导页720_1242.png",
"hdpi" : "G:/薛礼根/2018/数字化校园/数字化校园png/北京泉江/数字化校园APP----引导页480_762.png"
},
"ios" : {
"iphone" : {
"portrait-896h@3x" : "res/startup/startup-ios-x.png",
"portrait-896h@2x" : "res/startup/startup-ios-x.png",
"iphonex" : "res/startup/startup-ios-x.png",
"retina55" : "res/startup/startup-ios-16-9.png",
"retina47" : "res/startup/startup-ios-16-9.png",
"retina40" : "res/startup/startup-ios-3-2.png",
"retina35" : "res/startup/startup-ios-3-2.png"
}
}
}
},
"uniStatistics" : {
"enable" : false
},
"nvueLaunchMode" : "fast"
},
/* 快应用特有相关 */
"quickapp" : {},
/* 小程序特有相关 */
"mp-weixin" : {
"appid" : "wxbc18c9bf92c86d28",
"setting" : {
"urlCheck" : false,
"es6" : true,
"postcss" : false,
"minified" : true
},
"usingComponents" : true,
"optimization" : {
"subPackages" : true
},
"uniStatistics" : {
"enable" : false
}
},
"mp-alipay" : {
"usingComponents" : true,
"component2" : true,
"enableParallelLoader" : true,
"uniStatistics" : {
"enable" : false
},
"appid" : ""
},
"mp-dingtalk" : {
"usingComponents" : true,
"component2" : true,
"enableParallelLoader" : true,
"uniStatistics" : {
"enable" : false
},
"appid" : ""
},
"mp-baidu" : {
"usingComponents" : true,
"uniStatistics" : {
"enable" : false
}
},
"mp-toutiao" : {
"usingComponents" : true,
"uniStatistics" : {
"enable" : false
}
},
"h5" : {
"uniStatistics" : {
"enable" : false
},
"router" : {
"mode" : "hash",
"base" : ""
},
"title" : "数字化智慧校园",
"template" : "index.html",
"optimization" : {
"treeShaking" : {
"enable" : false
}
},
"domain" : "testapp.bjquanjiang.com",
"devServer" : {
"port" : 80,
"https" : false
}
},
"mp-qq" : {
"uniStatistics" : {
"enable" : false
}
},
"uniStatistics" : {
"enable" : false
}
}

+ 1
- 1
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/my.vue Прегледај датотеку

@@ -83,7 +83,7 @@
)
console.log(res, "退出返回信息");
this.CLEAR_GLOBAL()
window.open(res.info)
window.open(res.info,"_self")
// this.RELAUNCH_TO('/pages/login')
},



Loading…
Откажи
Сачувај