|
|
|
@ -38,6 +38,9 @@ class AuditSupplier extends RowAction |
|
|
|
try { |
|
|
|
$user = Supplier::find($this->getKey()); |
|
|
|
$user->status = $request->action == 1 ? UserStatus::NORMAL : UserStatus::REFUSE; |
|
|
|
if (empty($user->publish_type)) { |
|
|
|
$user->publish_type = [0, 1, 2, 3, 4, 5]; //可发布的产品模板
|
|
|
|
} |
|
|
|
$user->save(); |
|
|
|
|
|
|
|
//插入权限表
|
|
|
|
|