master
wangxinglong 2022-05-27 18:12:37 +08:00
parent 3807c03ef3
commit 982c375ea8
2 changed files with 5 additions and 1 deletions

View File

@ -72,6 +72,10 @@ class Common extends Base
$list = new Collection();
}
foreach ($list as &$item) {
$item["src"] = resourceJoin($item["src"], $this->request->domain());
}
return $this->json(0, 'success', $list);
}

View File

@ -469,7 +469,7 @@ class Order extends Base
// ->insert(ImageManagerStatic::make($mpCode)->resize(380, 380), 'bottom-right', 560, 723)
// ->encode('data-url');
->save(public_path() . $savePath);
return $this->json(0, "success", ["path" => $savePath, "content" => $content]);
return $this->json(0, "success", ["path" => resourceJoin($savePath, $this->request->domain()), "content" => $content]);
}
}