setter
parent
3807c03ef3
commit
982c375ea8
|
@ -72,6 +72,10 @@ class Common extends Base
|
||||||
$list = new Collection();
|
$list = new Collection();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
foreach ($list as &$item) {
|
||||||
|
$item["src"] = resourceJoin($item["src"], $this->request->domain());
|
||||||
|
}
|
||||||
|
|
||||||
return $this->json(0, 'success', $list);
|
return $this->json(0, 'success', $list);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -469,7 +469,7 @@ class Order extends Base
|
||||||
// ->insert(ImageManagerStatic::make($mpCode)->resize(380, 380), 'bottom-right', 560, 723)
|
// ->insert(ImageManagerStatic::make($mpCode)->resize(380, 380), 'bottom-right', 560, 723)
|
||||||
// ->encode('data-url');
|
// ->encode('data-url');
|
||||||
->save(public_path() . $savePath);
|
->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]);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue