package_type

This commit is contained in:
邓皓元 2019-12-20 19:33:52 +08:00
parent 32ddfca113
commit a64f6e58f8

View File

@ -115,6 +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;
if (!$attributes['id']) {
$maxId = Package::withTrashed()->max('id');