亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

多圖文顯示 ,只顯示第一條數據?不知道為什么,下載老師的源碼也是這樣,求助大佬!

多圖文顯示 ,只顯示第一條數據?不知道為什么,下載老師的源碼也是這樣,求助大佬!

?if(trim($postObj->Content)=="tuwen2"){
????????????????//返回的數據類型位?news?,圖文類型
????????????????$msgType="news";
//????????????????組裝單條圖文信息
????????????????$arr=[
????????????????????array(
????????????????????????//文章標題
????????????????????????'Title'=>'baidu',
????????????????????????//文章描述
????????????????????????'Description'=>'百度是個好地方啊',
????????????????????????//文章圖片鏈接
????????????????????????'PicUrl'=>'https://www.baidu.com/img/bd_logo1.png',
????????????????????????//點擊圖文后的跳轉地址
????????????????????????'Url'=>'https://www.baidu.com/',
????????????????????),
????????????????????array(
????????????????????????//文章標題
????????????????????????'Title'=>'imooc',
????????????????????????//文章描述
????????????????????????'Description'=>'慕課是個好地方啊',
????????????????????????//文章圖片鏈接
????????????????????????'PicUrl'=>'http://106.14.173.104/static/images/people.jpg',
????????????????????????//點擊圖文后的跳轉地址
????????????????????????'Url'=>'http://www.xianlaiwan.cn/',
????????????????????),

????????????????];
????????????????echo?$this->getNewsTemplate($toUser,$fromUser,$time,$msgType,$arr);
//組合?圖文回復?XML格式數據
public?function?getNewsTemplate($ToUserName,$FromUserName,$CreateTime,$MsgType,$arr){
????//組裝消息模板
????$template="<xml>
????????????????????<ToUserName><![CDATA[%s]]></ToUserName>
????????????????????<FromUserName><![CDATA[%s]]></FromUserName>
????????????????????<CreateTime>%s</CreateTime>
????????????????????<MsgType><![CDATA[%s]]></MsgType>
????????????????????<ArticleCount>".count($arr)."</ArticleCount>
????????????????????<Articles>";
????foreach?($arr?as?$k=>$v){
????????$template.=??"<item>
????????????????????????????<Title><![CDATA[".$v['Title']."]]></Title>
????????????????????????????<Description><![CDATA[".$v['Description']."]]></Description>
????????????????????????????<PicUrl><![CDATA[".$v['PicUrl']."]]></PicUrl>
????????????????????????????<Url><![CDATA[".$v['Url']."]]></Url>
????????????????????????</item>";
????}
????$template.="</Articles>
???????????????</xml>";
????$result=sprintf($template,$ToUserName,$FromUserName,$CreateTime,$MsgType);
????return?$result;
}


正在回答

2 回答


【蜘蛛俠TG@abin789】-3600
【蜘蛛俠TG@abin789】-3601
【蜘蛛俠TG@abin789】-3602
【蜘蛛俠TG@abin789】-3603
【蜘蛛俠TG@abin789】-3604
【蜘蛛俠TG@abin789】-3605
【蜘蛛俠TG@abin789】-3606
【蜘蛛俠TG@abin789】-3607
【蜘蛛俠TG@abin789】-3608
【蜘蛛俠TG@abin789】-3609
【蜘蛛俠TG@abin789】-3610
【蜘蛛俠TG@abin789】-3611
【蜘蛛俠TG@abin789】-3612
【蜘蛛俠TG@abin789】-3613
【蜘蛛俠TG@abin789】-3614
【蜘蛛俠TG@abin789】-3615
【蜘蛛俠TG@abin789】-3616
【蜘蛛俠TG@abin789】-3617
【蜘蛛俠TG@abin789】-3618
【蜘蛛俠TG@abin789】-3619
【蜘蛛俠TG@abin789】-3620
【蜘蛛俠TG@abin789】-3621
【蜘蛛俠TG@abin789】-3622
【蜘蛛俠TG@abin789】-3623
【蜘蛛俠TG@abin789】-3624
【蜘蛛俠TG@abin789】-3625
【蜘蛛俠TG@abin789】-3626
【蜘蛛俠TG@abin789】-3627
【蜘蛛俠TG@abin789】-3628
【蜘蛛俠TG@abin789】-3629
【蜘蛛俠TG@abin789】-3630
【蜘蛛俠TG@abin789】-3631
【蜘蛛俠TG@abin789】-3632
【蜘蛛俠TG@abin789】-3633
【蜘蛛俠TG@abin789】-3634
【蜘蛛俠TG@abin789】-3635
【蜘蛛俠TG@abin789】-3636
【蜘蛛俠TG@abin789】-3637
【蜘蛛俠TG@abin789】-3638
【蜘蛛俠TG@abin789】-3639
【蜘蛛俠TG@abin789】-3640
【蜘蛛俠TG@abin789】-3641
【蜘蛛俠TG@abin789】-3642
【蜘蛛俠TG@abin789】-3643
【蜘蛛俠TG@abin789】-3644
【蜘蛛俠TG@abin789】-3645
【蜘蛛俠TG@abin789】-3646
【蜘蛛俠TG@abin789】-3647
【蜘蛛俠TG@abin789】-3648
【蜘蛛俠TG@abin789】-3649
【蜘蛛俠TG@abin789】-3650
【蜘蛛俠TG@abin789】-3651
【蜘蛛俠TG@abin789】-3652
【蜘蛛俠TG@abin789】-3653
【蜘蛛俠TG@abin789】-3654
【蜘蛛俠TG@abin789】-3655
【蜘蛛俠TG@abin789】-3656
【蜘蛛俠TG@abin789】-3657
【蜘蛛俠TG@abin789】-3658
【蜘蛛俠TG@abin789】-3659
【蜘蛛俠TG@abin789】-3660
【蜘蛛俠TG@abin789】-3661
【蜘蛛俠TG@abin789】-3662
【蜘蛛俠TG@abin789】-3663
【蜘蛛俠TG@abin789】-3664
【蜘蛛俠TG@abin789】-3665
【蜘蛛俠TG@abin789】-3666
【蜘蛛俠TG@abin789】-3667
【蜘蛛俠TG@abin789】-3668
【蜘蛛俠TG@abin789】-3669
【蜘蛛俠TG@abin789】-3670
【蜘蛛俠TG@abin789】-3671
【蜘蛛俠TG@abin789】-3672
【蜘蛛俠TG@abin789】-3673
【蜘蛛俠TG@abin789】-3674
【蜘蛛俠TG@abin789】-3675
【蜘蛛俠TG@abin789】-3676
【蜘蛛俠TG@abin789】-3677
【蜘蛛俠TG@abin789】-3678
【蜘蛛俠TG@abin789】-3679
【蜘蛛俠TG@abin789】-3680
【蜘蛛俠TG@abin789】-3681
【蜘蛛俠TG@abin789】-3682
【蜘蛛俠TG@abin789】-3683
【蜘蛛俠TG@abin789】-3684
【蜘蛛俠TG@abin789】-3685
【蜘蛛俠TG@abin789】-3686
【蜘蛛俠TG@abin789】-3687
【蜘蛛俠TG@abin789】-3688
【蜘蛛俠TG@abin789】-3689
【蜘蛛俠TG@abin789】-3690
【蜘蛛俠TG@abin789】-3691
【蜘蛛俠TG@abin789】-3692
【蜘蛛俠TG@abin789】-3693
【蜘蛛俠TG@abin789】-3694
【蜘蛛俠TG@abin789】-3695
【蜘蛛俠TG@abin789】-3696
【蜘蛛俠TG@abin789】-3697
【蜘蛛俠TG@abin789】-3698
【蜘蛛俠TG@abin789】-3699
【蜘蛛俠TG@abin789】-3700
【蜘蛛俠TG@abin789】-3701
【蜘蛛俠TG@abin789】-3702
【蜘蛛俠TG@abin789】-3703
【蜘蛛俠TG@abin789】-3704
【蜘蛛俠TG@abin789】-3705
【蜘蛛俠TG@abin789】-3706
【蜘蛛俠TG@abin789】-3707
【蜘蛛俠TG@abin789】-3708
【蜘蛛俠TG@abin789】-3709
【蜘蛛俠TG@abin789】-3710
【蜘蛛俠TG@abin789】-3711
【蜘蛛俠TG@abin789】-3712
【蜘蛛俠TG@abin789】-3713
【蜘蛛俠TG@abin789】-3714
【蜘蛛俠TG@abin789】-3715
【蜘蛛俠TG@abin789】-3716
【蜘蛛俠TG@abin789】-3717
【蜘蛛俠TG@abin789】-3718
【蜘蛛俠TG@abin789】-3719
【蜘蛛俠TG@abin789】-3720
【蜘蛛俠TG@abin789】-3721
【蜘蛛俠TG@abin789】-3722
【蜘蛛俠TG@abin789】-3723
【蜘蛛俠TG@abin789】-3724
【蜘蛛俠TG@abin789】-3725
【蜘蛛俠TG@abin789】-3726
【蜘蛛俠TG@abin789】-3727
【蜘蛛俠TG@abin789】-3728
【蜘蛛俠TG@abin789】-3729
【蜘蛛俠TG@abin789】-3730
【蜘蛛俠TG@abin789】-3731
【蜘蛛俠TG@abin789】-3732
【蜘蛛俠TG@abin789】-3733
【蜘蛛俠TG@abin789】-3734
【蜘蛛俠TG@abin789】-3735
【蜘蛛俠TG@abin789】-3736
【蜘蛛俠TG@abin789】-3737
【蜘蛛俠TG@abin789】-3738
【蜘蛛俠TG@abin789】-3739
【蜘蛛俠TG@abin789】-3740
【蜘蛛俠TG@abin789】-3741
【蜘蛛俠TG@abin789】-3742
【蜘蛛俠TG@abin789】-3743
【蜘蛛俠TG@abin789】-3744
【蜘蛛俠TG@abin789】-3745
【蜘蛛俠TG@abin789】-3746
【蜘蛛俠TG@abin789】-3747
【蜘蛛俠TG@abin789】-3748
【蜘蛛俠TG@abin789】-3749
【蜘蛛俠TG@abin789】-3750
【蜘蛛俠TG@abin789】-3751
【蜘蛛俠TG@abin789】-3752
【蜘蛛俠TG@abin789】-3753
【蜘蛛俠TG@abin789】-3754
【蜘蛛俠TG@abin789】-3755
【蜘蛛俠TG@abin789】-3756
【蜘蛛俠TG@abin789】-3757
【蜘蛛俠TG@abin789】-3758
【蜘蛛俠TG@abin789】-3759
【蜘蛛俠TG@abin789】-3760
【蜘蛛俠TG@abin789】-3761
【蜘蛛俠TG@abin789】-3762
【蜘蛛俠TG@abin789】-3763
【蜘蛛俠TG@abin789】-3764
【蜘蛛俠TG@abin789】-3765
【蜘蛛俠TG@abin789】-3766
【蜘蛛俠TG@abin789】-3767
【蜘蛛俠TG@abin789】-3768
【蜘蛛俠TG@abin789】-3769
【蜘蛛俠TG@abin789】-3770
【蜘蛛俠TG@abin789】-3771
【蜘蛛俠TG@abin789】-3772
【蜘蛛俠TG@abin789】-3773
【蜘蛛俠TG@abin789】-3774
【蜘蛛俠TG@abin789】-3775
【蜘蛛俠TG@abin789】-3776
【蜘蛛俠TG@abin789】-3777
【蜘蛛俠TG@abin789】-3778
【蜘蛛俠TG@abin789】-3779
【蜘蛛俠TG@abin789】-3780
【蜘蛛俠TG@abin789】-3781
【蜘蛛俠TG@abin789】-3782
【蜘蛛俠TG@abin789】-3783
【蜘蛛俠TG@abin789】-3784
【蜘蛛俠TG@abin789】-3785
【蜘蛛俠TG@abin789】-3786
【蜘蛛俠TG@abin789】-3787
【蜘蛛俠TG@abin789】-3788
【蜘蛛俠TG@abin789】-3789
【蜘蛛俠TG@abin789】-3790
【蜘蛛俠TG@abin789】-3791
【蜘蛛俠TG@abin789】-3792
【蜘蛛俠TG@abin789】-3793
【蜘蛛俠TG@abin789】-3794
【蜘蛛俠TG@abin789】-3795
【蜘蛛俠TG@abin789】-3796
【蜘蛛俠TG@abin789】-3797
【蜘蛛俠TG@abin789】-3798
【蜘蛛俠TG@abin789】-3799

0 回復 有任何疑惑可以回復我~

https://img1.sycdn.imooc.com//5be82fcb0001092911440032.jpg

我今天也是,看了看文檔? 是不是這個原因.

0 回復 有任何疑惑可以回復我~
#1

無問西東i

就是就是
2022-09-13 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

多圖文顯示 ,只顯示第一條數據?不知道為什么,下載老師的源碼也是這樣,求助大佬!

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號