public ActionResult DistributeCouponToAllMember() { DistributeCouponToAllMemberArgs args = RequestArgs <DistributeCouponToAllMemberArgs>(); if (args == null) { return(FailedResult("参数无效。")); } List <Member> memberList = _memberManager.GetAllMemberList(); StringBuilder memberPhoneNums = new StringBuilder(); foreach (Member jadeMember in memberList) { memberPhoneNums.Append(jadeMember.phone_num + "\n"); } MyPushService pushService = new MyPushService(); string strTile = "优惠券到账通知!"; string strMsg = "【张寿宴玉雕】送您一张优惠券:" + _couponManager.GetCoupon(args.CouponId).name + ",这里·才是和田玉的源头。"; pushService.SendAndroidCustomizedcastFile(strTile, strMsg, memberPhoneNums.ToString(), "com.android.zhangsy.MyCouponActivity", ""); pushService.SendIOSCustomizedcast(strMsg, strMsg, memberPhoneNums.ToString(), "mycoupon", ""); NormalResult result = _couponManager.DistributeCouponToAllMember(args); return(ApiResult(result.Successful, result.Message)); }