|

8精币
{"code":"200","msg":null,"result":{"customerId":null,"memberId":"31056418","nickName":"11111","fatherSonRelationStatus":"0","parentUser":[{"customerId":null,"memberId":"31287821","nickName":"一","fatherSonRelationStatus":"0","parentUser":null,"outsideNumId":"847039363"},{"customerId":null,"memberId":"31532230","nickName":"二","fatherSonRelationStatus":"0","parentUser":null,"outsideNumId":"864930641"},{"customerId":null,"memberId":"40177003","nickName":"三","fatherSonRelationStatus":"0","parentUser":null,"outsideNumId":"1577594107"},{"customerId":null,"memberId":"40881401","nickName":"四","fatherSonRelationStatus":"0","parentUser":null,"outsideNumId":"1640176627"}],"outsideNumId":"868144832"},"hostName":"newbpfe5.vm.kgb.cm3"}
{"customerId":null,"memberId":"31532230","nickName":"二","fatherSonRelationStatus":"0","parentUser":null,"outsideNumId":"864930641"}
比如这段,判断 nickName 的数值=二 取 memberId outsideNumId 2个数值
如果 nickName 的数值=三 取 memberId outsideNumId 2个数值
当然这个二 或者 三 随机自定义的!
"memberId":"(\d+)".*?"nickName":"二".*?"memberId":"(\d+)
正则 取出来的 memberId":"31056418 outsideNumId":"864930641 emberId 不对的 这个要怎么 写?
补充内容 (2013-12-1 06:26):
类方式有一个办法 就是老崩溃,下面有类的源码 有其他的方式吗?!!! |
|