| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Web;
- using System.Web.UI;
- using System.Web.UI.WebControls;
- namespace LYFZ.WeixinServers
- {
- public partial class Login : System.Web.UI.Page
- {
- protected void Page_Load(object sender, EventArgs e)
- {
- string strKfAccount, strKfPassword;
- if ( VerifyParameters(out strKfAccount, out strKfPassword) )
- {
- // 客服账号和密码正确,返回数据给客户端;
- // 1.返回企业的消息服务器详情;
- // 2.返回企业的app类型信息;
- // 3.返回企业的客服账号详情;
- // 4.返回;
- }
- else
- {
- Response.Write("{\"code\":201, \"msg\":\"参数名不对或参数缺少\"}");
- }
- }
- public bool VerifyParameters(out string kf_account , out string kf_psw)
- {
- kf_account = kf_psw = "";
- if ( Request.Form["kf_account"] != null && Request.Form["kf_psw"] != null )
- {
- kf_account = Request.Form["kf_account"];
- kf_psw = Request.Form["kf_psw"];
- if (!string.IsNullOrEmpty(kf_account) && !string.IsNullOrEmpty(kf_psw))
- return true;
- }
- return false;
- }
- }
- }
|