作者 郭盛
1 个管道 的构建 通过 耗费 15 秒

修改返回参数

@@ -1877,6 +1877,7 @@ class User extends Api @@ -1877,6 +1877,7 @@ class User extends Api
1877 //发送短信 1877 //发送短信
1878 1878
1879 $send->sms($mobile,$content); 1879 $send->sms($mobile,$content);
  1880 + $res_info['url'] = $pic['url'];
1880 1881
1881 }elseif (empty($order_info['pic_id'])){ 1882 }elseif (empty($order_info['pic_id'])){
1882 $video_id = unserialize($order_info['video_id']); 1883 $video_id = unserialize($order_info['video_id']);
@@ -1885,20 +1886,26 @@ class User extends Api @@ -1885,20 +1886,26 @@ class User extends Api
1885 $mobile = $user['mobile']; 1886 $mobile = $user['mobile'];
1886 if($video_id['attr'] == 1){ 1887 if($video_id['attr'] == 1){
1887 $content = "【仁甲看见SHOP】,感谢您购买仁甲看见SHOP素材。视频标题:$video[title],云盘地址:$video[two_url]"; 1888 $content = "【仁甲看见SHOP】,感谢您购买仁甲看见SHOP素材。视频标题:$video[title],云盘地址:$video[two_url]";
  1889 + $res_info['url'] = $video['two_url'];
1888 }elseif ($video_id['attr'] == 2){ 1890 }elseif ($video_id['attr'] == 2){
1889 $content = "【仁甲看见SHOP】,感谢您购买仁甲看见SHOP素材。视频标题:$video[title],云盘地址:$video[four_url]"; 1891 $content = "【仁甲看见SHOP】,感谢您购买仁甲看见SHOP素材。视频标题:$video[title],云盘地址:$video[four_url]";
  1892 + $res_info['url'] = $video['four_url'];
1890 }elseif ($video_id['attr'] == 3){ 1893 }elseif ($video_id['attr'] == 3){
1891 $content = "【仁甲看见SHOP】,感谢您购买仁甲看见SHOP素材。视频标题:$video[title],云盘地址:$video[eight_url]"; 1894 $content = "【仁甲看见SHOP】,感谢您购买仁甲看见SHOP素材。视频标题:$video[title],云盘地址:$video[eight_url]";
  1895 + $res_info['url'] = $video['eight_url'];
1892 } 1896 }
1893 //发送短信 1897 //发送短信
1894 $send->sms($mobile,$content); 1898 $send->sms($mobile,$content);
  1899 +
1895 } 1900 }
1896 Db::commit(); 1901 Db::commit();
1897 } catch (\Exception $e) { 1902 } catch (\Exception $e) {
1898 // 回滚事务 1903 // 回滚事务
1899 Db::rollback(); 1904 Db::rollback();
1900 } 1905 }
1901 - $this->success('success'); 1906 +
  1907 +
  1908 + $this->success('success',$res_info);
1902 } 1909 }
1903 1910
1904 } 1911 }