正在显示
1 个修改的文件
包含
3 行增加
和
3 行删除
@@ -1859,7 +1859,7 @@ class User extends Api | @@ -1859,7 +1859,7 @@ class User extends Api | ||
1859 | $order_info = Db::name('iphone')->where('id',$data_order)->find(); | 1859 | $order_info = Db::name('iphone')->where('id',$data_order)->find(); |
1860 | //用户购买的什么素材 | 1860 | //用户购买的什么素材 |
1861 | if(empty($order_info['video_id'])){ | 1861 | if(empty($order_info['video_id'])){ |
1862 | - $pic = Db::name('pic')->where('id',$data['pic_id'])->find(); | 1862 | + $pic = Db::name('pic')->where('id',$order_info['pic_id'])->find(); |
1863 | 1863 | ||
1864 | //发送短信,通知客户 | 1864 | //发送短信,通知客户 |
1865 | $mobile = $user['mobile']; | 1865 | $mobile = $user['mobile']; |
@@ -1868,8 +1868,8 @@ class User extends Api | @@ -1868,8 +1868,8 @@ class User extends Api | ||
1868 | 1868 | ||
1869 | $send->sms($mobile,$content); | 1869 | $send->sms($mobile,$content); |
1870 | 1870 | ||
1871 | - }elseif (empty($data['pic_id'])){ | ||
1872 | - $video_id = unserialize($data['video_id']); | 1871 | + }elseif (empty($order_info['pic_id'])){ |
1872 | + $video_id = unserialize($order_info['video_id']); | ||
1873 | $video = Db::name('video')->where('id',$video_id['id'])->find(); | 1873 | $video = Db::name('video')->where('id',$video_id['id'])->find(); |
1874 | //发送短信,通知客户 | 1874 | //发送短信,通知客户 |
1875 | $mobile = $user['mobile']; | 1875 | $mobile = $user['mobile']; |
-
请 注册 或 登录 后发表评论