Exemple #1
0
 public void CheckBargainBlackList()
 {
     using (var client = new ShareBargainClient())
     {
         var request = new BargainBlackListRequest()
         {
             Mobile = "12388883333",
             Ip     = "123.34.2.2"
         };
         var result = client.CheckBargainBlackList(request).Result;
         Assert.IsTrue(result.Code == 1);
     }
 }
        /// <summary>
        /// 验证是否为砍价黑名单
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        public async Task <OperationResult <ShareBargainBaseResult> > CheckBargainBlackListAsync(BargainBlackListRequest request)
        {
            var result = BargainManager.CheckBargainBlackList(request);
            await Task.Yield();

            return(OperationResult.FromResult(result));
        }