27 lines
714 B
C#
27 lines
714 B
C#
using Ninject;
|
|
using System.Data;
|
|
using System.Web.Mvc;
|
|
using WX.CRM.Common;
|
|
using WX.CRM.IBLL.weapp;
|
|
using WX.CRM.WebHelper.Infrastructure;
|
|
namespace WX.CRM.WEB.Controllers.Weapp
|
|
{
|
|
public class WeappChatController : BaseController
|
|
{
|
|
public IWX_UserInfo wxuserinfo = NinjectControllerFactory.ninjectKernel.Get<IWX_UserInfo>();
|
|
//
|
|
// GET: /WeappChat/
|
|
|
|
[HttpPost]
|
|
public JsonResult GetWeappCustomerInfo(string openid)
|
|
{
|
|
DataSet dst = wxuserinfo.GetCustomerInfoByOpenId(openid);
|
|
if (dst == null)
|
|
return Json("");
|
|
else
|
|
return Json(DataTableConvertJson.Dataset2Json(dst));
|
|
}
|
|
|
|
}
|
|
}
|