微信发红包

利用cy 获取对应的处理方法

#"<WCRedEnvelopesMakeRedEnvelopesViewController: 0x18c3c200>"

点击 塞钱进红包

OnMakeWCRedEnvelopesButtonClick

利用hopper查看伪代码

创建订单数据
WCRedEnvelopesControlData setM_dicPrepayRequestOrderInfo:

            loc_1c0d080(@class(NSMutableDictionary), @selector(dictionary), 0x344e948);
            
            loc_1c0d080(r10, @selector(safeSetObject:forKey:), r5, @"totalNum", 0x1);
                                        loc_1c0d080(r10, @selector(safeSetObject:forKey:), r5, @"hbType");
                                        
                                                                    loc_1c0d080(r10, @selector(safeSetObject:forKey:), loc_1c0d08c(), @"totalAmount");
                        
                    
                        loc_1c0d080(r10, r6, loc_1c0d08c(), @"totalAmount");
设置祝福语

nsDefaultWishingLabel //默认祝福语

        loc_1c0d080(r10, @selector(safeSetObject:forKey:), r4, @"wishing");

                                                                    
                                                                    
                    loc_1c0d080(r6, @selector(safeSetObject:forKey:), r5, @"username");                                                                    
                                        
Oct 31 17:20:02 iPhone WeChat[4680] <Notice>: [RedRobert] Tweak.xm:1856 DEBUG: -[<WCRedEnvelopesControlData: 0x16ce0da0> setM_dicPrepayRequestOrderInfo:{
        hbType = 0;
        perValue = 100;
        totalAmount = 100;
        totalNum = 1;
        username = z929118967;
        wishing = 1;
    }]
    原文作者:kunnan
    原文地址: https://segmentfault.com/a/1190000011795461
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞