国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

? ?? ??? ?? ?? asp.net? ??? WeChat ?? ??? ?? (3) WeChat ??? ??? ? ?? ??

asp.net? ??? WeChat ?? ??? ?? (3) WeChat ??? ??? ? ?? ??

Feb 23, 2017 pm 02:07 PM
?? ?? ???

?? ????? ?? ?????? ???? ?? ??? ???????. ??? ??? ? LookMsgType ???? ?????. LookMsgType ???? ?? WeChat?? ?? ??? ???? ?????. ??? ???? ??? ????, ???? ???? ??? if ?? ???? ???? ?? ????. LookMsgType ???? ??? ???? ????:

public?void?LookMsgType(string?msgType)
????????{

????????????#region?判斷消息類型
????????????switch?(msgType)
????????????{
????????????????case?"text":
????????????????????RText?mText?=?new?RText();
????????????????????mText?=?ReadXml.GetModel<rtext>(mText,?xmlModel);
????????????????????BLLWei.DoText(dbHome,?mText);//文本消息
????????????????????break;
????????????????case?"image":
????????????????????RImg?mImg?=?new?RImg();
????????????????????mImg?=?ReadXml.GetModel<rimg>(mImg,?xmlModel);
????????????????????BLLWei.DoImg(dbHome,mImg);//圖片
????????????????????break;
????????????????case?"voice":?//聲音
????????????????????RVoice?mVoice?=?new?RVoice();
????????????????????mVoice?=?ReadXml.GetModel<rvoice>(mVoice,?xmlModel);
????????????????????BLLWei.DoVoice(dbHome,mVoice);
????????????????????break;

????????????????case?"video"://視頻
????????????????????RVideo?mVideo?=?new?RVideo();
????????????????????mVideo?=?ReadXml.GetModel<rvideo>(mVideo,?xmlModel);
????????????????????BLLWei.DoVideo(dbHome,?mVideo);
????????????????????break;

????????????????case?"location"://地理位置
????????????????????RLocation?mLocation?=?new?RLocation();
????????????????????mLocation?=?ReadXml.GetModel<rlocation>(mLocation,?xmlModel);
????????????????????BLLWei.DoLocation(dbHome,mLocation);
????????????????????break;
????????????????case?"link"://鏈接
????????????????????RLink?mLink?=?new?RLink();
????????????????????mLink?=?ReadXml.GetModel<rlink>(mLink,?xmlModel);
????????????????????BLLWei.DoLink(dbHome,mLink);
????????????????????break;
????????????????#region?事件
????????????????case?"event":

????????????????????switch?(ReadXml.ReadModel("Event",?xmlModel))
????????????????????{
????????????????????????case?"subscribe":

????????????????????????????if?(ReadXml.ReadModel("EventKey",?xmlModel).IndexOf("qrscene_")?>=?0)
????????????????????????????{
????????????????????????????????RCodeNotSub?mNotSub?=?new?RCodeNotSub();
????????????????????????????????mNotSub?=?ReadXml.GetModel<rcodenotsub>(mNotSub,?xmlModel);
????????????????????????????????BLLWei.DoCodeNotSub(dbHome,mNotSub);//未關(guān)注的新用戶,掃描帶參數(shù)的二維碼關(guān)注
????????????????????????????}
????????????????????????????else
????????????????????????????{
????????????????????????????????RSub?mSub?=?new?RSub();
????????????????????????????????mSub?=?ReadXml.GetModel<rsub>(mSub,?xmlModel);
????????????????????????????????BLLWei.DoSub(dbHome,mSub);//普通關(guān)注
????????????????????????????}
????????????????????????????break;
????????????????????????case?"unsubscribe":
????????????????????????????RUnsub?mUnSub?=?new?RUnsub?();
????????????????????????????mUnSub?=?ReadXml.GetModel<runsub>(mUnSub,?xmlModel);
????????????????????????????BLLWei.DoUnSub(dbHome,mUnSub);//取消關(guān)注
????????????????????????????break;

????????????????????????case?"SCAN":
????????????????????????????RCodeSub?mCodeSub?=?new?RCodeSub();
????????????????????????????mCodeSub?=?ReadXml.GetModel<rcodesub>(mCodeSub,?xmlModel);
????????????????????????????BLLWei.DoCodeSub(dbHome,mCodeSub);//已經(jīng)關(guān)注的用戶掃描帶參數(shù)的二維碼
????????????????????????????break;
????????????????????????case?"LOCATION"://用戶上報(bào)地理位置

????????????????????????????RSubLocation?mSubLoc?=?new?RSubLocation();
????????????????????????????mSubLoc?=?ReadXml.GetModel<rsublocation>(mSubLoc,?xmlModel);

????????????????????????????BLLWei.DoSubLocation(dbHome,?mSubLoc);
????????????????????????????break;
????????????????????????case?"CLICK"://自定義菜單點(diǎn)擊

????????????????????????????RMenuClick?mMenuClk?=?new?RMenuClick();
????????????????????????????mMenuClk?=?ReadXml.GetModel<rmenuclick>(mMenuClk,?xmlModel);
????????????????????????????BLLWei.DoMenuClick(dbHome,?mMenuClk);
????????????????????????????break;
????????????????????????case?"VIEW"://自定義菜單跳轉(zhuǎn)事件

????????????????????????????RMenuView?mMenuVw?=?new?RMenuView();
????????????????????????????mMenuVw?=?ReadXml.GetModel<rmenuview>(mMenuVw,?xmlModel);
????????????????????????????BLLWei.DoMenuView(dbHome,?mMenuVw);
????????????????????????????break;
????????????????????};
????????????????????break;
????????????????#endregion
????????????}
????????????#endregion
????????}</rmenuview></rmenuclick></rsublocation></rcodesub></runsub></rsub></rcodenotsub></rlink></rlocation></rvideo></rvoice></rimg></rtext>

?? ??? ???? ??? ??? ?????. ??? ??? ???? ?? ???? ?? ??? ??(???, ??? ??, ??? ?? ?? ???)? ?????. ?) ? ???? WeChat?? ?? ?? ???? ???????. ? ??? ??? ReadXml.GetModel ???? ??? ?? ???? ? ?????. ??? ?? ???? ?? ??? ?? ???? ?????. ??? ??? ? ?? ??? ?? ???? ??? ????.

1. ??? ???:

WeChat?? ?? ?? ???? ??? ??? ???? ???? ???? ???? ?????. ?? ??? ?? ??? ?????? ??? ????:

asp.net? ??? WeChat ?? ??? ?? (3) WeChat ??? ??? ? ?? ??

?

------??? ??:

?? ??? RText . cs

public?class?RText
????{
????????public?string?ToUserName?{?get;?set;?}//?開發(fā)者微信號
????????public?string?FromUserName?{?get;?set;?}//?用戶號(OpenID)
????????public?long?CreateTime?{?get;?set;?}//?創(chuàng)建時(shí)間
????????public?string?MsgType?{?get;?set;?}?//消息類型
????????public?string?Content?{?get;?set;?}//內(nèi)容
????????public?long?MsgId?{?get;?set;?}//消息ID

????}

??? ??? ???? RMenuClick.cs

public?class?RMenuClick
????{
????????public?string?ToUserName?{?get;?set;?}//?開發(fā)者微信號
????????public?string?FromUserName?{?get;?set;?}//?用戶號(OpenID)
????????public?long?CreateTime?{?get;?set;?}//?創(chuàng)建時(shí)間
????????public?string?MsgType?{?get;?set;?}?//消息類型

????????public?string?Event?{?get;?set;?}//事件類型
????????public?string?EventKey?{?get;?set;?}//事件key
????????
????}

? ?????. ?? ?? ???? ??? ???? ????.

-----??? ???

?? ??? ??? SText.cs

public?class?SText
????{



????????public?string?ToUserName?{?get;?set;?}//?用戶號(OpenID)
????????public?string?FromUserName?{?get;?set;?}//?開發(fā)者微信號

????????public?long?CreateTime?{?get;?set;?}//?創(chuàng)建時(shí)間

????????public?string?MsgType?{?get?{?return?"text";?}?}?//消息類型

????????public?string?Content?{?get;?set;?}//內(nèi)容


????}

SText

??? ??? ??? SNews.cs

namespace?DataModel.Send
{
????public?class?SNews
????{
????????public?string?ToUserName?{?get;?set;?}//?用戶號(OpenID)
????????public?string?FromUserName?{?get;?set;?}//?開發(fā)者微信號

????????public?long?CreateTime?{?get;?set;?}//?創(chuàng)建時(shí)間

????????public?string?MsgType?{?get?{?return?"news";?}?}?//消息類型

????????public?int?ArticleCount?{?get;?set;?}//圖文個(gè)數(shù)

????????public?List<articlesmodel>?Articles?{?get;?set;?}//圖文列表
????}
????public?class?ArticlesModel?//默認(rèn)第一條大圖顯示
????{
????????public?string?Title?{?get;?set;?}//標(biāo)題
????????public?string?Description?{?get;?set;?}//描述
????????public?string?PicUrl?{?get;?set;?}//圖片鏈接??
????????public?string?Url?{?get;?set;?}//點(diǎn)擊之后跳轉(zhuǎn)的鏈接

????}
}</articlesmodel>

??? ???? ?? ? WeChat? ?? ???? ?? ?? ?? ??? ???(?? 10?)? ???? ??? ArticlesModel? ????. ?? ????? ??? ??? ??? ?? ?????.

2. Reflection? ?? ??? ?? ??

?? ? ???? ?? xml? ???? ??? ??, ?? ???? ????? ????. ?? ??? ???? ???? ?? ??? ???? ????. ??? LookMsgType ?????? ???? ?? ??? ? ReadXml.GetModel? ??? ???? ?????.

///?<summary>
????????///?通過反射給接收消息model賦值
????????///?</summary>
????????///?<typeparam></typeparam>
????????///?<param>
????????///?<returns></returns>
????????public?static?T?GetModel<t>(T?model,?Dictionary<string>?xmlModel)?where?T?:?class
????????{
????????????var?m?=?model.GetType();
????????????foreach?(PropertyInfo?p?in?m.GetProperties())
????????????{
????????????????string?name?=?p.Name;
????????????????if?(xmlModel.Keys.Contains(name))
????????????????{
????????????????????string?value=xmlModel.Where(x?=>?x.Key?==?name).FirstOrDefault().Value;
????????????????????p.SetValue(model,
????????????????????string.IsNullOrEmpty(value)???null?:?Convert.ChangeType(value,?p.PropertyType),?null);?
????????????????}
????????????}
????????????return?model;
????????}</string></t>

T ??? ??? ??? ???? xmlmodel? ???? ???? WeChat?? ??? ?? ??? xml ?????. ??? ?? ???? ??? ??? ??? ????. ?? ?? ??????.

???, ? ????? Lookmsgtype ???? ???? ??? ??? ? ?? ??? ??? ?? ???? ?? ???? ?? ? ?? ??? ??????...

asp .net ?? ??? ?? ?? ??? (3) ?? ??? ??? ? ?? ?? ?? ?? PHP ??? ????? ??????!


? ????? ??
? ?? ??? ????? ???? ??? ??????, ???? ?????? ????. ? ???? ?? ???? ?? ??? ?? ????. ???? ??? ???? ???? ??? ?? admin@php.cn?? ?????.

? AI ??

Undresser.AI Undress

Undresser.AI Undress

???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover

AI Clothes Remover

???? ?? ???? ??? AI ?????.

Video Face Swap

Video Face Swap

??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

???

??? ??

???++7.3.1

???++7.3.1

???? ?? ?? ?? ???

SublimeText3 ??? ??

SublimeText3 ??? ??

??? ??, ???? ?? ????.

???? 13.0.1 ???

???? 13.0.1 ???

??? PHP ?? ?? ??

???? CS6

???? CS6

??? ? ?? ??

SublimeText3 Mac ??

SublimeText3 Mac ??

? ??? ?? ?? ?????(SublimeText3)

???

??? ??

??? ????
1601
29
PHP ????
1502
276
???