Example #1
0
 /**
  * 打印推送结果
  * @param $platform
  * @param $result
  */
 private function printResult($platform, $result)
 {
     $logger = LogUtil::getLogger('push', 'push');
     $logger->addInfo('platform = ' . $platform . ' result = ' . $result);
 }
Example #2
0
<?php

/**
 * Copyright (C) Loopeer, Inc - All Rights Reserved
 * Unauthorized copying of this file, via any medium is strictly prohibited
 * Proprietary and confidential.
 *
 * User: DengYongBin
 * Date: 15/11/4
 * Time: 下午6:01
 */
Event::listen('illuminate.query', function ($query, $params, $time, $conn) {
    if (config('quickcms.sql_log_switch')) {
        $logger = \Loopeer\QuickCms\Services\Utils\LogUtil::getLogger('sql', 'sql');
        $logger->addInfo($query . '   params = ' . implode(',', $params) . '  time = ' . $time . '   conn = ' . $conn);
    }
});
Route::get('admin/login', 'IndexController@getLogin');
Route::post('admin/login', array('middleware' => 'auth.login', 'as' => 'admin.login', 'uses' => 'IndexController@postLogin'));
Route::get('test/push', 'TestController@push');
Route::get('admin/index/getLoginLog', 'IndexController@getLoginLog');
Route::get('admin/users/search', ['as' => 'admin.users.search', 'uses' => 'GeneralController@search']);
Route::get('admin/roles/search', ['as' => 'admin.roles.search', 'uses' => 'GeneralController@search']);
Route::get('admin/permissions/search', ['as' => 'admin.permissions.search', 'uses' => 'PermissionController@search']);
Route::get('admin/actionLogs/search', ['as' => 'admin.actionLogs.search', 'uses' => 'LogController@search']);
Route::get('admin/versions/search', ['as' => 'admin.versions.search', 'uses' => 'GeneralController@search']);
Route::get('admin/feedbacks/search', ['as' => 'admin.feedbacks.search', 'uses' => 'GeneralController@search']);
Route::get('admin/selector/search', ['as' => 'admin.selector.search', 'uses' => 'SelectorController@search']);
Route::get('admin/document/search', ['as' => 'admin.document.search', 'uses' => 'DocumentController@search']);
Route::get('admin/pushes/search', ['as' => 'admin.pushes.search', 'uses' => 'PushesController@search']);
Route::get('admin/systems/search', ['as' => 'admin.systems.search', 'uses' => 'GeneralController@search']);