{"push_id":1192736999,"size":2,"distinct_size":2,"ref":"refs/heads/master","head":"093be7b99e6b9fdb4b2da28f80219477ed55e74a","before":"5a76c963a8440b3b5b6b3af949369c922cdbb13e","commits":[{"sha":"edd7b809bf6cbcd0c5569f604507302726411b15","author":{"name":"MirChangBin","email":"20ef860ecc272663ccf2b9d1273b99c027ca01b7@macdeMacintosh.local"},"message":"代理传值，是后往前传值\n\n#pragma mark\n不知道为什么，这里属性传值就可以，，但是下边的代理传值就没用效果，这个本来就是这么简单，那就是代理传值是从后边往前传的，之所以我们在请求的时候看\n起来就是前往后传，那其实不是前往后，而是里边的block回调，其实本来我们就先有视图了，在里边菜请求，，也就是视图就是前，请求是后，再说bloc\nk也会回调。。。。一定是后往前传值的\n\n        detailVC.dataIndex=goods.goodsId;\n\n#pragma mark 上边处理好了。。这里也得到goodsID了。。可以过去请求啦。。\n\n#pragma mark 创建代理，，让点击跳转的时候，代理传值数据过去...\n\n        if ([_dataDelegate\nrespondsToSelector:@selector(sendGoods_listIndex:indexPath:)]) {\n            [_dataDelegate sendGoods_listIndex:self\nindexPath:goods.goodsId];\n        }\n\n         //[self.navigationController pushViewController:detailVC\nanimated:YES];\n    }\n\n    //要想知道传值成功没有，就需要跳转\n     [self.navigationController pushViewController:detailVC\nanimated:YES];","distinct":true,"url":"https://api.github.com/repos/wozhuile/pinduoduo/commits/edd7b809bf6cbcd0c5569f604507302726411b15"},{"sha":"093be7b99e6b9fdb4b2da28f80219477ed55e74a","author":{"name":"MirChangBin","email":"20ef860ecc272663ccf2b9d1273b99c027ca01b7@macdeMacintosh.local"},"message":"详情传值，进行请求bug问题 懂得输出下对象创建没有，是不是空的，没有创建对象，声明属性还不行\n\n#pragma mark\n不知道为什么下边对象在没有创建这里的时候一直是空了。跳转斗这样麼？？这前的都不是跳转的，声明属性都可以了。。现在这里还需要创建对象才可以有对象，\n，，不过好像也是啊\n\n    _detail=[[detailModel alloc]init];\n    // _viewDelegate.dataDelegate=self;\n\n    //NSLog(@\"%ld\",(long)self.dataIndex);\n\n     //[self sendUrl];\n\n//-(void)viewWillAppear:(BOOL)animated\n//{\n//    [super viewWillAppear:animated];\n//\n//    [self sendUrl];\n//\n//}\n#pragma mark 属性传值过来，进行对应请求吧\n-(void)sendUrl\n{\n\n    NSLog(@\"%ld\",(long)self.dataIndex);\n#pragma mark 刚刚属性哪里用成weak来修饰了。对象就是空。释放了\n    [_detail detailRequestData:[NSString\nstringWithFormat:@\"http://apiv2.yangkeduo.com/goods/%ld\",(long)self.data\nIndex]];\n\n    NSLog(@\"%@\",[NSString\nstringWithFormat:@\"http://apiv2.yangkeduo.com/goods/%ld\",(long)self.data\nIndex]);\n\n}\n\n懂得输出下对象创建没有，是不是空的","distinct":true,"url":"https://api.github.com/repos/wozhuile/pinduoduo/commits/093be7b99e6b9fdb4b2da28f80219477ed55e74a"}]}
{"actor":{"display_login":"MirChangBin"}}