正在显示
1 个修改的文件
包含
2 行增加
和
1 行删除
@@ -676,7 +676,8 @@ class User extends Api | @@ -676,7 +676,8 @@ 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 | - $a = file_get_contents($data['water_url']); | 679 | + $qiniu_url = $rule.$data['water_url']; |
680 | + $a = file_get_contents($qiniu_url); | ||
680 | $path = './uploads/'.explode('/',$base_url)[2].'/'; | 681 | $path = './uploads/'.explode('/',$base_url)[2].'/'; |
681 | if(!file_exists($path)) { | 682 | if(!file_exists($path)) { |
682 | mkdir($path,0777,true); | 683 | mkdir($path,0777,true); |
-
请 注册 或 登录 后发表评论