package_type

This commit is contained in:
邓皓元 2019-12-20 19:34:37 +08:00
parent a64f6e58f8
commit 28f2b3bbca

View File

@ -115,7 +115,7 @@ class PackageService extends Service
$attributes['cost_price'] = intval($attributes['cost_price'] * 100);
$attributes['guide_price'] = intval($attributes['guide_price'] * 100);
$attributes['package_type'] = $attributes['package_type'] ?? 255;
$attributes['package_type'] = intval($attributes['package_type']);
if (!$attributes['id']) {
$maxId = Package::withTrashed()->max('id');