|
@@ -31,10 +31,10 @@ class Test extends Command
|
|
*/
|
|
*/
|
|
public function handle()
|
|
public function handle()
|
|
{
|
|
{
|
|
- $data = DB::connection('api_mysql')->table('official_accounts')->select('distribution_channel_id', 'nickname', 'name', 'head_img', 'appid', 'appsecret', 'verify_txt', 'alias', 'qrcode_url', 'principal_name', 'service_type_info', 'func_info', 'authorizer_refresh_token', 'is_auth', 'cancel_auth_time', 'official_account_type', 'verify_type_info', 'subscribe_top_num', 'subscribe_day_maximum', 'sort_no', 'is_enabled')->where('appid', 'wxebcb86ec4b80eaca')->first();
|
|
|
|
- $data = (array)$data;
|
|
|
|
- Log::info('official_accounts_info: '.json_encode($data));
|
|
|
|
- Redis::hset('official_account_info:app_id:wxebcb86ec4b80eaca', 'official_account_info', json_encode($data));
|
|
|
|
|
|
+// $data = DB::connection('api_mysql')->table('official_accounts')->select('distribution_channel_id', 'nickname', 'name', 'head_img', 'appid', 'appsecret', 'verify_txt', 'alias', 'qrcode_url', 'principal_name', 'service_type_info', 'func_info', 'authorizer_refresh_token', 'is_auth', 'cancel_auth_time', 'official_account_type', 'verify_type_info', 'subscribe_top_num', 'subscribe_day_maximum', 'sort_no', 'is_enabled')->where('appid', 'wxebcb86ec4b80eaca')->first();
|
|
|
|
+// $data = (array)$data;
|
|
|
|
+// Log::info('official_accounts_info: '.json_encode($data));
|
|
|
|
+// Redis::hset('official_account_info:app_id:wxebcb86ec4b80eaca', 'official_account_info', json_encode($data));
|
|
|
|
|
|
// $books = \App\Modules\Book\Services\BookConfigService::getBookByRole('叶安');
|
|
// $books = \App\Modules\Book\Services\BookConfigService::getBookByRole('叶安');
|
|
// dd($books);
|
|
// dd($books);
|