Category: Cache Server
-
Post Views: 15 1. In the console command of Yii 2.0, an error is reported: yii\db\exception: redis error: err Invalid DB index Redis command was: Select 29 in /vendor/yiisoft/yii2-redis/src/connection.php:736, view /console/runtime/logs/app.log 2. The analysis found that when executing the command: Select 29, switch to the corresponding database: 29 errors, and a Redis instance has 16 databases by default, from 0…
-
Post Views: 13 1. Error in Yii 2.0: Calling unknown method yii2tech\\ar\\softdelete\\softdeleteBehavior::IsTransactional(), as shown in Figure 1 2. Check the code, because the operation of the Redis model uses soft delete (SoftDelete) 3. Edit the code, and use the hard delete (delete) to delete the Redis model 4. Summary: In Yii 2.0, yii2tech\ar\\softdelete\\softdeleteBehavior does not support the soft deletion of…
-
Post Views: 14 1. In Postman, open the URL:http://api.pcs-api.localhost/v1/plan-config-column-users?login_id=2e368664c41b8bf511bcc9c65d86dbc3&login_tid=685f805f71faedfe215f55bbb01b50c6&filter[config_column_id]=1 , only the fields are supported: config_column_id queries, the response is as follows: 2. The SQL statement is as follows: 3. Existing new requirements need to support the fuzzy query of user_nick, but the field: user_nick does not exist in mysql ActiveRecord, but exists in Redis ActiveRecord. And Redis ActiveRecord does…
-
Post Views: 11 1. URL:https://windows.php.net/download#php-7.2, download vc15 x64 thread safe, as shown in Figure 1 2. VC15 version needs to install Visual Studio 2017 x64 or x86 Visual C++ Redistributable, download and install Microsoft Visual C++ Redistributable for Visual Studio 2017, as shown in Figure 2 3. Copy php-7.2.14-win32-vc15-x64 to C:\php-7.2.14 4. Edit environment variables: C:\php-7.1.12, modified to C:\php-7.2.14 5.…
-
Post Views: 14 1. The web application authorization of the micro-connection of Weibo (the user who guides the user to enter the authorization page to log in to the authorization page to agree to the web application of the micro-connection of Weibo), the rap document, as shown in Figure 1 2. Since the channel publishing interface is the underlying service,…
-
Post Views: 39 1. The copy API application is QQ and WX. After adjusting the corresponding configuration, the final application directory structure is as follows 2. Nginx-based single domain name configuration on Yii 2 advanced project template, refer to the website:https://www.shuijingwanwq.com/2018/08/16/2836/, the API application is cross-channel, the QQ application is Penguin, and the WX application is the WeChat public account,…
-
Post Views: 61 1. By configuring the additional event processor, edit \environments\dev\common\config\main-local.php, \environments\prod\common\config\main-local.php, as shown in Figure 1 2. Edit \QQ\RESTS\QQ_CW_APP\IndexAction.php, an entry of a push queue 3. Edit \Common\Services\AssetService.php, copy the source resource file to the resource directory published by the channel, after the queue task is successfully executed, call the corresponding service, otherwise, insert the release log (asynchronous)…
-
Post Views: 13 1. Edit the cached controller class, \API\Controllers\CacheController.php 2. Create the data layer of the cached resource class (the corresponding model language package file), \common\models\redis\cache.php 3. Create the logical layer of the cached resource class, \common\logics\redis\cache.php 4. In the interface application, create a cached resource class, \API\Models\Redis\Cache.php 5. In the V1 module of the interface application, create the…