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

文件下载调试

@@ -676,13 +676,13 @@ class User extends Api @@ -676,13 +676,13 @@ class User extends Api
676 $click_num = $data['click_num'] + 1; 676 $click_num = $data['click_num'] + 1;
677 Db::name('pic')->where('id',$pic_id)->update(['click_num'=>$click_num]); 677 Db::name('pic')->where('id',$pic_id)->update(['click_num'=>$click_num]);
678 $data['accredit'] = $rule.$accredit['thumbnail']; 678 $data['accredit'] = $rule.$accredit['thumbnail'];
679 - $data['water_url'] = $rule.$data['water_url'];  
680 $a = file_get_contents($data['water_url']); 679 $a = file_get_contents($data['water_url']);
681 $path = './uploads/'.explode('/',$base_url)[2].'/'; 680 $path = './uploads/'.explode('/',$base_url)[2].'/';
682 if(!file_exists($path)) { 681 if(!file_exists($path)) {
683 mkdir($path,0777,true); 682 mkdir($path,0777,true);
684 } 683 }
685 file_put_contents('.'.$base_url,$a); 684 file_put_contents('.'.$base_url,$a);
  685 + $data['water_url'] = request()->domain().$data['water_url'];
686 686
687 687
688 $data['vip_price'] = $data['price'] * 0.75; 688 $data['vip_price'] = $data['price'] * 0.75;