Commit f9c1a5b7 by 杨树贤

carbon问题

parent ad1a96d4
Showing with 1 additions and 2 deletions
...@@ -125,12 +125,11 @@ class SupplierValidator ...@@ -125,12 +125,11 @@ class SupplierValidator
'is_business_abnormal' => 'required', 'is_business_abnormal' => 'required',
'phone' => 'required', 'phone' => 'required',
]; ];
//2022年6月30日(含)之前新建的供应商,在修改供应商信息时,可跳过“注册资金”这一必填项 //2022年6月30日(含)之前新建的供应商,在修改供应商信息时,可跳过“注册资金”这一必填项
if (!$isAdd) { if (!$isAdd) {
$supplier = SupplierChannelModel::where('supplier_id', $validateData['supplier_id']) $supplier = SupplierChannelModel::where('supplier_id', $validateData['supplier_id'])
->first()->toArray(); ->first()->toArray();
if ($supplier['create_time'] < Carbon::createFromDate('2022-06-30')->timestamp) { if ($supplier['create_time'] < Carbon::createFromDate(2022,6,30)->timestamp) {
$rules['registered_capital'] = ''; $rules['registered_capital'] = '';
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment