'ID', 'mall_id' => '商城ID', 'level' => 'level', 'start' => '开始时间', 'end' => '结束时间', 'money' => '当前分红池金额', 'dispatch_money' => '分出去金额', 'people' => '人数', 'is_upgrade_bag_give_goods_pool' => '开启云仓代理升级礼包赠送的商品计算补货盒数,关闭则不计算', 'is_superposition' => '分红池开关:每个分红池可以开启是否可以叠加分红,开启则进行叠加,关闭则不叠加', 'pool_settlement_type' => '结算类型:0:月;1:季度', 'status' => '状态[-1:删除;0:禁用;1启用]', 'created_at' => 'Created At', 'updated_at' => 'Updated At', ]; } public static function create($params) { try { $model = new self(); $model->loadDefaultValues(); if (!$model->load($params, '') || !$model->save()) throw new \Exception($model->getErrorMessage()); return $model->toArray(); } catch (\Exception $e) { self::setStaticError($e->getMessage()); return false; } } }