private function operateAddLog($tableName, $fields) { list($type, $insertId) = array(ACloudVerDataFlowAggregate::getTypeByTableName($tableName), $fields['insertid']); if (is_null($type) || !$insertId) { return false; } $sign = ACloudSysCoreCommon::getSiteSign(); return setcookie('_ac_' . $sign, intval($type), time() + 3600); }
public static function getTypeByTableName($tableName) { $tableConfigs = ACloudVerDataFlowAggregate::getTableConfigs(); return isset($tableConfigs[$tableName]) ? $tableConfigs[$tableName] : null; }