feat: sku

This commit is contained in:
2025-01-08 15:45:28 +08:00
parent 4c10e8ed71
commit b23865f4f1
5 changed files with 22 additions and 10 deletions

View File

@@ -78,10 +78,9 @@ class SpuService extends BaseService
*/
public function add(): array
{
$date = $this->request->input('date',date('Y-m-d'));
$cycleInfo = $this->cycleModel->getInfoByDate($date);
$cycleId = (int)$this->request->input('cycle_id');
$cycleInfo = $this->cycleModel->getInfoById($cycleId);
if (empty($cycleInfo)) throw new ErrException('没有该周期,请刷新后重新上传');
$title = $this->request->input('title');