Exemple #1
0
        public async void sendMSG(Dictionary <string, object> dic, string checkoOpenid)
        {
            try
            {
                string msgTempId = AppSetting.GetSection("msgtemp:temp");
                string url       = AppSetting.GetSection("msgUrl:url");
                string ss        = await MsgHelper.Msg.SendMsg(url, checkoOpenid, dic, msgTempId);

                wy_region_director obj = _Db.Db().Queryable <wy_region_director>().Where(a => a.WX_OPEN_ID == checkoOpenid && a.MOBILE != null).First();
                if (obj != null)
                {
                    string   mssTempId = AppSetting.GetSection("msgsmstemp:smstemp");
                    string[] arry      = new string[] {
                        "", "商户整改反馈复查通知"
                    };
                    string aaa = await MsgHelper.Msg.SendSMS(obj.MOBILE?.ToString(), arry, mssTempId);
                }
            }
            catch (Exception ex)
            {
            }
        }
Exemple #2
0
 public bool UpdateRegionDirector(wy_region_director director)
 {
     return(UpdateInfo <wy_region_director>(director,
                                            c => new { c.WX_OPEN_ID, c.MOBILE },
                                            c => new { c.MOBILE }) > 0);
 }