Sfoglia il codice sorgente

接口调试

西昌缴费二期
liangkun 2 anni fa
parent
commit
81da6753d1
5 ha cambiato i file con 13 aggiunte e 5 eliminazioni
  1. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic_PayFee/PayFeeIndex.js
  2. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Views/UserCenter/Index.cshtml
  3. +8
    -1
      Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/WeixinApi.cs
  4. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic_PayFee/StuInfoBasic_PayFeeEntity.cs
  5. +2
    -2
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/config.js

+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic_PayFee/PayFeeIndex.js Vedi File

@@ -108,7 +108,7 @@ var bootstrap = function ($, learun) {
{
label: "性别", name: "GenderNo", width: 80, align: "left",
formatter: function (cellvalue) {
return cellvalue == true ? "男" : "女";
return cellvalue === true ? "男" : "女";
}
},
{ label: "身份证号", name: "IdentityCardNo", width: 150, align: "left" },


+ 1
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Views/UserCenter/Index.cshtml Vedi File

@@ -190,6 +190,7 @@
},
filters: {
sex: function (value) {
console.log(value);
return value ? "男生" : "女生";

},


+ 8
- 1
Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/WeixinApi.cs Vedi File

@@ -102,6 +102,13 @@ namespace Learun.Application.WebApi.Modules
return Success(new { appid, secret });
}

public class wxinfo
{
public string errcode { get; set; }
public string errmsg { get; set; }
public string openid { get; set; }
}

public Response GetWeixinAccess_token(dynamic _)
{
var entity = weChatConfigIbll.GetEnableEntity();
@@ -112,7 +119,7 @@ namespace Learun.Application.WebApi.Modules
var responsejson = HttpGet("https://api.weixin.qq.com/sns/oauth2/access_token?appid=" + appid + "&secret=" + secret + "&code=" + code + "&grant_type=authorization_code");
if (!string.IsNullOrEmpty(responsejson))
{
var weixintokenobj = JsonConvert.DeserializeObject<dynamic>(responsejson);
var weixintokenobj = JsonConvert.DeserializeObject<wxinfo>(responsejson);
if (string.IsNullOrEmpty(weixintokenobj.errcode))
{
string openid = weixintokenobj.openid;


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic_PayFee/StuInfoBasic_PayFeeEntity.cs Vedi File

@@ -62,7 +62,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration

[NotMapped] public string StuCode { get; set; }
[NotMapped] public string StuName { get; set; }
[NotMapped] public string GenderNo { get; set; }
[NotMapped] public bool? GenderNo { get; set; }
[NotMapped] public string IdentityCardNo { get; set; }
[NotMapped] public string DeptNo { get; set; }
[NotMapped] public string MajorNo { get; set; }


+ 2
- 2
Learun.Framework.Ultimate V7/LearunApp-2.2.0/config.js Vedi File

@@ -21,8 +21,8 @@ export default {
// "http://192.168.2.98:8088/"
// ],
"apiHost": [
// "http://localhost:31173/"
"http://123.57.209.16:31173/"
"http://localhost:31173/"
// "http://123.57.209.16:31173/"
],
"webHost":"http://demo.bjquanjiang.com:8081/",
// 开发环境下自动填充登录账号密码,与接口地址一一对应,只在开发环境下显示


Caricamento…
Annulla
Salva