fixed tax rates

This commit is contained in:
Edward Yang 2022-08-10 14:14:31 +08:00
parent 352badce6b
commit b3e97082fd
1 changed files with 2 additions and 0 deletions

View File

@ -31,6 +31,7 @@ class TaxRateController
{
$requestData = json_decode($request->getContent(), true);
$taxRate = TaxRateRepo::createOrUpdate($requestData);
$taxRate->load('region');
return json_success('保存成功', $taxRate);
}
@ -39,6 +40,7 @@ class TaxRateController
$requestData = json_decode($request->getContent(), true);
$requestData['id'] = $taxRateId;
$taxRate = TaxRateRepo::createOrUpdate($requestData);
$taxRate->load('region');
return json_success('更新成功', $taxRate);
}