1.创建订单
请求方式：
post
请求地址：
http://mall.e.weibo.com/aj/redenvelope/create
Content-Type：
application/x-www-form-urlencoded;charset=UTF-8
请求参数：
bag_type=1&puicode=10000073&msgtype=1&msgid=3882872994&singalAmount=1&blessing=快来抢，手快有，手慢无。恭喜发财！&count=1&amount=1&_t=0
----------------------------------------------------------------
Cookie:SUB=_2A25w2lDsDeRhGeFP7FIS9C7FwjiIHXVTrsUkrDV8PUNbmtBeLXfakW9NQRuyMVA6PMiEDyPRxNrKG4KGP8fGZGyG; SUHB=0auAL5t3IpVGy4;
X-Requested-With:XMLHttpRequest
Referer:http://mall.e.weibo.com/h5/redenvelope/create?sinainternalbrowser=topnav&msgtype=1&msgid=3882872994&uicode=10000073&page=2&portrait_only=1
User-Agent:Mozilla/5.0 (Linux; Android 5.1.1; DUK-AL20 Build/LMY48Z) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/39.0.0.0 Safari/537.36 Weibo (HUAWEI-DUK-AL20__weibo__9.7.2.1__android__android5.1.1)
----------------------------------------------------------------
{"code":"100000","msg":"\u64cd\u4f5c\u6210\u529f","data":{"url":"https:\/\/pay.sc.weibo.com\/api\/merchant\/pay\/cashier?sign_type=RSA&sign=It4qqlPwEoixjLoa9V%2B20S1XCBIofikGfGBR9vu9DkBAi89RPh%2FFHBpGp%2Bob56AxaSHcsBk8dWA%2FsPz9g0QoreiAjS4SVGjag6RUvsy31U35zHfAg%2BIKRrf0S0VBg278gOGU0GObtQ8f5CD76Y1rExDFXOdnIazhhJ%2BG%2BnfFceA%3D&seller_id=5136362277&appkey=743219212&out_pay_id=6000058081626&notify_url=https%3A%2F%2Fhb.e.weibo.com%2Fv2%2Fbonus%2Fpay%2Fwnotify&return_url=https%3A%2F%2Fhb.e.weibo.com%2Fv2%2Fbonus%2Fpay%2Fwreturn%3Fsinainternalbrowser%3Dtopnav&subject=%E5%BE%AE%E5%8D%9A%E7%BA%A2%E5%8C%85&body=&total_amount=100&cfg_follow_uid=5136362277&cfg_share_opt=0&cfg_follow_opt=0"}}

----------------------------------------------------------------

2.获取支付html
请求方式：
get
请求地址：
https://pay.sc.weibo.com/api/merchant/pay/cashier?sign_type=RSA&sign=It4qqlPwEoixjLoa9V%2B20S1XCBIofikGfGBR9vu9DkBAi89RPh%2FFHBpGp%2Bob56AxaSHcsBk8dWA%2FsPz9g0QoreiAjS4SVGjag6RUvsy31U35zHfAg%2BIKRrf0S0VBg278gOGU0GObtQ8f5CD76Y1rExDFXOdnIazhhJ%2BG%2BnfFceA%3D&seller_id=5136362277&appkey=743219212&out_pay_id=6000058081626&notify_url=https%3A%2F%2Fhb.e.weibo.com%2Fv2%2Fbonus%2Fpay%2Fwnotify&return_url=https%3A%2F%2Fhb.e.weibo.com%2Fv2%2Fbonus%2Fpay%2Fwreturn%3Fsinainternalbrowser%3Dtopnav&subject=%E5%BE%AE%E5%8D%9A%E7%BA%A2%E5%8C%85&body=&total_amount=100&cfg_follow_uid=5136362277&cfg_share_opt=0&cfg_follow_opt=0
----------------------------------------------------------------
Cookie:SUB=_2A25w2lDsDeRhGeFP7FIS9C7FwjiIHXVTrsUkrDV8PUNbmtBeLXfakW9NQRuyMVA6PMiEDyPRxNrKG4KGP8fGZGyG; SUHB=0auAL5t3IpVGy4;
User-Agent:Mozilla/5.0 (Linux; Android 5.0; SM-G900P Build/LRX21T) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Mobile Safari/537.36
----------------------------------------------------------------
<!DOCTYPE HTML>
<html>
	<head>
	<meta charset="utf-8">
	<title>微博红包</title>
	</head>
	<body>
	<form action="https://openapi.alipay.com/gateway.do?charset=UTF-8" method="POST" id="alipayForm">
	<input name="app_id" type="hidden" value="2016010401062614"/>
	<input name="method" type="hidden" value="alipay.trade.wap.pay"/>
	<input name="format" type="hidden" value="JSON"/>
	<input name="return_url" type="hidden" value="https://pay.sc.weibo.com/charge/wap/return2"/>
	<input name="charset" type="hidden" value="UTF-8"/>
	<input name="sign_type" type="hidden" value="RSA2"/>
	<input name="timestamp" type="hidden" value="2019-11-27 16:32:44"/>
	<input name="version" type="hidden" value="1.0"/>
	<input name="notify_url" type="hidden" value="https://pay.sc.weibo.com/api/alipay/wap/notify2"/>
	<input name="biz_content" type="hidden" value="{&quot;subject&quot;:&quot;微博红包&quot;,&quot;out_trade_no&quot;:&quot;104443278309168619&quot;,&quot;timeout_express&quot;:1,&quot;total_amount&quot;:&quot;1.00&quot;,&quot;product_code&quot;:&quot;QUICK_WAP_WAY&quot;,&quot;quit_url&quot;:&quot;https:\/\/pay.sc.weibo.com\/pay\/wap\/fail?msg=%E6%94%AF%E4%BB%98%E5%BC%82%E5%B8%B8&quot;}"/>
	<input name="sign" type="hidden" value="A9e03xYENL225qjkaYaWqJZdD5Iu1CjDRf0093B7DWfeGEFqZ8iDE/0O6xbFOTtpsXMq8WUwjs30+QH/tGl/w2Hrmd73wU38hKlg24h+sN6KSRFbGMRiPxNJByp/uAeRmadGngYA6PkMIBg4nr0Ny7rp+oYO6JcNs49KtlRUIKouU3Hghhd0CAuUysFNsFduuD55zeqjycvzLZLc1ZMTzYzsitKxy4uVfdwa9TuBFHcL9QD7odIUCD9nuy0eMItL45F0fzKx/m9q3otqzQlsa+rXPmvU0cDzEmQhX2WjdT8bTNvrOnhb0AXNqzwbZtZeNuZfyFIm72mYF/v8ciKWZA=="/>
	</form>
	<script>
		document.getElementById('alipayForm').submit();
	</script>
	</body>
</html>


----------------------------------------------------------------

3.查单
请求方式：
post
请求地址：
https://pay.sc.weibo.com/aj/pc/biz/list
Content-Type：
application/x-www-form-urlencoded;charset=UTF-8
请求参数：
biz_type=0&status=0&biz_id=104443278309168619&start_time=2019-11-21&end_time=2019-11-27&page=1&page_size=10
----------------------------------------------------------------
Cookie:SUB=_2A25w2lDsDeRhGeFP7FIS9C7FwjiIHXVTrsUkrDV8PUNbmtBeLXfakW9NQRuyMVA6PMiEDyPRxNrKG4KGP8fGZGyG; SUHB=0auAL5t3IpVGy4;
----------------------------------------------------------------
{"code":"100000","msg":"\u64cd\u4f5c\u6210\u529f","data":{"biz":[{"biz_id":"124443278309168568","uid":"7170340994","biz_type":"2","show_type":"41","trade_uid":"5136362277","subject":"\u5fae\u535a\u7ea2\u5305","has_refund":"0","amount":"1.00","status":"2","biz_time":"2019-11-27 16:32:44","create_time":"2019-11-27 16:32:44","modify_time":"2019-11-27 16:34:26","amount_prefix":"-","trade_user_nickname":"\u5fae\u535a\u7ea2\u5305","trade_user_image":"https:\/\/tva2.sinaimg.cn\/crop.0.0.300.300.50\/005BBEsRjw8fa7nsaun07j308c08cmxa.jpg?KID=imgbed,tva&Expires=1574854492&ssig=92uYwqhQZe","subject_cut":"\u5fae\u535a\u7ea2\u5305","order_id":"6000058081626","pay_time":"2019-11-27 16:34:26","pay_info":{"pay_id":"124443278309168568","out_pay_id":"6000058081626","seller_id":"5136362277","appkey":"743219212","buyer_id":"7170340994","subject":"\u5fae\u535a\u7ea2\u5305","body":"","total_amount":"100","pay_channel":"103","pay_method":"2","charge_id":"174443278309168600","charge_amount":"100","amount_charge":"-100","amount_balance":"0","amount_unsettle":"100","amount_settled":"0","amount_fee":"0","cfg":"{\"cfg_follow_uid\":\"5136362277\",\"cfg_share_opt\":\"0\",\"cfg_follow_opt\":\"0\"}","notify_url":"https:\/\/hb.e.weibo.com\/v2\/bonus\/pay\/wnotify","return_url":"https:\/\/hb.e.weibo.com\/v2\/bonus\/pay\/wreturn?sinainternalbrowser=topnav","expire":"86400","extra":"","status":"1","sub_status":"0","pay_time":"2019-11-27 16:34:26","close_time":"2019-11-28 16:32:44","create_time":"2019-11-27 16:32:44","update_time":"2019-11-27 16:34:26","coupon_amount":"0","amount_coupon":"0"},"biz_type_desc":"\u6d88\u8d39","show_type_desc":"\u7ea2\u5305","status_desc":"\u4ea4\u6613\u6210\u529f"}],"count":0,"page":"1","page_size":"10","has_next_page":false,"notice":false,"notify_msg":false}}

----------------------------------------------------------------

4.付款之后红包信息发送给收款人
请求方式：
post
请求地址：
https://mall.e.weibo.com/aj/redenvelope/sendmsg
Content-Type：
application/x-www-form-urlencoded;charset=UTF-8
请求参数：
msgid=3882872994&msgtype=1&set_id=6000058081626&_t=0
----------------------------------------------------------------
Cookie:SUB=_2A25w2lDsDeRhGeFP7FIS9C7FwjiIHXVTrsUkrDV8PUNbmtBeLXfakW9NQRuyMVA6PMiEDyPRxNrKG4KGP8fGZGyG; SUHB=0auAL5t3IpVGy4;
X-Requested-With:XMLHttpRequest
User-Agent:Mozilla/5.0 (Linux; Android 5.1.1; DUK-AL20 Build/LMY48Z) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/39.0.0.0 Safari/537.36 Weibo (HUAWEI-DUK-AL20__weibo__9.7.2.1__android__android5.1.1)
----------------------------------------------------------------
{"code":"100000","msg":"\u64cd\u4f5c\u6210\u529f","data":{"url":"sinaweibo:\/\/browser\/close"}}

----------------------------------------------------------------

5.拆包
请求方式：
get
请求地址：
https://mall.e.weibo.com/h5/redenvelope/draw?set_id=6000058081626&sinainternalbrowser=topnav&portrait_only=1&from=1097295010&weiboauthoruid= 
----------------------------------------------------------------
Cookie:SUB=_2A25w2lOTDeRhGeVG41AZ9yzFwjiIHXVQdAfbrDV8PUJbitAKLUHXkWtNT5g3XVDxf2gIsvbi6cqShNuRC5QbPJGb; SUHB=0ftp-YNSKb01Dw;
X-Requested-With:com.sina.weibo
User-Agent:Mozilla/5.0 (Linux; Android 5.1.1; DUK-AL20 Build/LMY48Z) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/39.0.0.0 Safari/537.36 Weibo (HUAWEI-DUK-AL20__weibo__9.7.2.1__android__android5.1.1)
x-user-agent:HUAWEI-DUK-AL20__weibo__9.7.2.1__android__android5.1.1
----------------------------------------------------------------
<!DOCTYPE html>
<html style="background: #fff1b5;">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <meta id="viewport" name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">
  <link href="//img.t.sinajs.cn/t4/appstyle/red_envelope/css/mobile/red_envelope/get.css?version=4b47672310537450" type="text/css" rel="stylesheet" />
  <script type="text/javascript" src="//js.t.sinajs.cn/t6/apps/enp_bee/js/seer.min.js"></script>
  <script type="text/javascript">
  $CONFIG = {};
  $CONFIG['jsPath'] = "//js.t.sinajs.cn/t6/";
  $CONFIG['cssPath'] = "//img.t.sinajs.cn/t4/";
  $CONFIG['imgPath'] = "//img.t.sinajs.cn/t4/";
  $CONFIG['is_push'] = "1";
  $CONFIG['owner_id'] = "7170340994";
  $CONFIG['owner_screen_name'] = "顾北68724";
  $CONFIG['owner_scheme'] = "https://mall.e.weibo.com/h5/redenvelope/recvdetailowner?sinainternalbrowser=topnav&set_id=6000058081626";
  $CONFIG['self_scheme'] = "https://mall.e.weibo.com/h5/redenvelope/receivedetail?sinainternalbrowser=topnav&set_id=6000058081626";
  $CONFIG['end_status'] = "1";
  $CONFIG['bomb_status'] = "0";
  $CONFIG['best_uid'] = "0";
  $CONFIG['bomb_screen_name'] = "";
  </script>
  <title>群组红包</title>
</head>
<body class="WB_red_envelope WB_get_bg">
  
 <div class="red_bg_yellow" id="pl_redEnvelope_get">
 <script type="text/javascript">
 $CONFIG['uid'] = "3882872994";
 $CONFIG['set_id'] = "6000058081626";
 $CONFIG['bonus'] = "100";
 </script>
 <section class="red_get" style="display: block;" node-type="redGet"suda-uatrack="key=qunzu_zhadan_hongbao&value=zhadan_hongbao_cby">
 <div class="envelope" node-type="clickOpen">
  <div class="userimg">
  <img src="https://tvax1.sinaimg.cn/default/images/default_avatar_male_180.gif?KID=imgbed,tva&Expires=1574854363&ssig=s%2FH2JlYHk8" />
 </div>
  <p class="sender"><span class="username">顾北68724</span>的红包</p>
  <p class="sender_blessing">快来抢，手快有，手慢无。恭喜发财！</p>
 </div>
 </section>
 <!--红包开包页面-->
 <section class="red_open" node-type="redOpen" style="display: none;">
 <div class="envelope">
  <div class="before"></div>
  <div class="letter letter_show" node-type="redLetter">
  <p class="letter_text">快来抢，手快有，手慢无。恭喜发财！</p>
  <p class="red_amount">1.00</p>
  <a href="sinaweibo://browser/close?scheme=http%3A%2F%2Fpay.sc.weibo.com%2Fcenter%2Fmobile%2Fhome%2Findex%3Fsinainternalbrowser%3Dtopnav" class="wallet_href arr_r" suda-uatrack="key=qunzu_zhadan_hongbao&value=zhadan_hongbao_cb_wbqb">红包金额已存入您的钱包</a>
  </div>
  <div class="userimg">
  <img src="https://tvax1.sinaimg.cn/default/images/default_avatar_male_180.gif?KID=imgbed,tva&Expires=1574854363&ssig=s%2FH2JlYHk8" />
 </div>
  <p class="sender"><span class="username">顾北68724</span>的红包</p>
 </div>
 <div class="btnwrap">
 <div class="elements send_heart" style="display:none"></div>
  <a class="btn close_btn" href="sinaweibo://browser/close">关闭</a>
 <div class="view_red_record">
  <a href="sinaweibo://browser/close?scheme=https%3A%2F%2Fmall.e.weibo.com%2Fh5%2Fredenvelope%2Freceivedetail%3Fsinainternalbrowser%3Dtopnav%26set_id%3D6000058081626%26uicode%3D20000229%26portrait_only%3D1">红包详情<span class="arr_r" suda-uatrack="key=qunzu_zhadan_hongbao&value=zhadan_hongbao_cb_hblqxq"></span></a>
  </div>
 </div>
 </section>
 </div>
  
  
  
</body>
<script type="text/javascript" src="//js.t.sinajs.cn/t6/apps/enp_redenvelope_m/js/base.js"></script>
<script type="text/javascript" src="//js.t.sinajs.cn/t6/apps/enp_redenvelope_m/js/pl/redEnvelope/get/index.js?version=4b47672310537450"></script>
<script type="text/javascript" src="//js.t.sinajs.cn/t6/apps/enp_bee/js/bee-0.1.1.min.js"></script>
<script type="text/javascript" src="//js.t.sinajs.cn/open/analytics/js/suda.js"></script>
</html>
