public async Task <IActionResult> Detail(DetailModel detailModel)
 {
     if (detailModel.OrginDate != null)
     {
         detailModel.NoSearch = false;
         string     reportdate = DateTimeToDateClass.DateStrToDateStr(detailModel.OrginDate);
         IAopClient client     = new DefaultAopClient("https://openapi.alipay.com/gateway.do", Program.Websiteconfig.AliPayAppID, Program.Websiteconfig.AliPayPrivateKey, "json", "1.0", "RSA2", Program.Websiteconfig.AliPayPublicKey, "utf-8", false);
         var        pageindex  = 1;
         while (true)
         {
             AlipayUserInviteOfflinedetailQueryRequest request = new AlipayUserInviteOfflinedetailQueryRequest();
             request.BizContent = "{" +
                                  "\"pid\":\"" + Program.Websiteconfig.Pid + "\"," +
                                  "\"report_date\":\"" + reportdate + "\"," +
                                  //"\"partner_id\":\"" + partner_id + "\"," +
                                  "\"page\":" + pageindex + "," +
                                  "\"page_size\":" + 500 +
                                  "  }";
             AlipayUserInviteOfflinedetailQueryResponse response = client.Execute(request);
             if (response.OfflineDetailInfoList != null)
             {
                 detailModel.DataModelList.AddRange(response.OfflineDetailInfoList);
                 detailModel.NoData = false;
                 pageindex++;
             }
             else
             {
                 break;
             }
         }
     }
     return(View(detailModel));
 }
        private static void Main()
        {
            IAopClient aopClient = new DefaultAopClient("https://openapi.alipay.com/gateway.do", "app_id", "merchant_private_key", "json", "1.0", "RSA2", "alipay_public_key", "GBK", keyFromFile: false);
            AlipayUserInviteOfflinedetailQueryRequest alipayUserInviteOfflinedetailQueryRequest = new AlipayUserInviteOfflinedetailQueryRequest();

            alipayUserInviteOfflinedetailQueryRequest.BizContent = "{\"pid\":\"2088811331577482\",\"report_date\":\"20181212\",\"partner_id\":\"m_qvdao1_qvdao2\",\"page\":1,\"page_size\":200  }";
            AlipayUserInviteOfflinedetailQueryResponse alipayUserInviteOfflinedetailQueryResponse = aopClient.Execute(alipayUserInviteOfflinedetailQueryRequest);

            Console.WriteLine(alipayUserInviteOfflinedetailQueryResponse.Body);
        }