文章中图片路径替换
if ($list['post_content']) { $list['post_content'] = html_entity_decode($list['post_content']); $list['post_content'] = str_replace('<img src="default', '<img src="/upload/default', $list['post_content']); }
if ($list['post_content']) { $list['post_content'] = html_entity_decode($list['post_content']); $list['post_content'] = str_replace('<img src="default', '<img src="/upload/default', $list['post_content']); }
$data = Db::name('about_product_list')->field('id,title,count(id) as num')->gr...
/* * 服务端生成带唯一标识二维码并将唯一标识返回给前端 */ public function wx_code() { $scene_str...
public function getCode(){ $order_id = '95896766'; $config = confi...
/* * 创建签名 */public function sign(){ $cardId = 'p7YU46qidv5_baigH0Ds4ObP7MDg'; &...
public function image() { // $url = 'uploads/20241026/8f32aebb8be904c5c01ea80de534880...
$lockKey = 'user_lock_requirement' . $this->user_id; $isLocked = Cache::get($lockKey); if ($isLo...