正在显示
1 个修改的文件
包含
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; |
-
请 注册 或 登录 后发表评论