From 9f6307850f3875a0af34de0df0b49b7701bb94c5 Mon Sep 17 00:00:00 2001 From: elf <360197197@qq.com> Date: Thu, 15 Sep 2022 00:19:50 +0800 Subject: [PATCH] yh --- app/Command/JinlingCommand.php | 6 ++++-- app/Helper/Client/Lanhuo.php | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app/Command/JinlingCommand.php b/app/Command/JinlingCommand.php index 141d818..c239603 100644 --- a/app/Command/JinlingCommand.php +++ b/app/Command/JinlingCommand.php @@ -59,13 +59,13 @@ class JinlingCommand extends HyperfCommand 'power' => '', // 战力 ]); */ - Lanhuo::addLoginLog([ + /* Lanhuo::addLoginLog([ 'user_id' => 111, 'account' => 'bbbbbbbabc111', 'phone' => '18888888888', 'device_type' => 2, // 设备类型(1-andriod 2-ios) 'device_number' => 'ABCD', - ]); + ]); */ /* Lanhuo::updateUser([ 'user_id' => 111, @@ -92,5 +92,7 @@ class JinlingCommand extends HyperfCommand 'pay_time' => date('Y-m-d H:i:s'), 'status' => 1, //支付状态(待支付 0 已支付 1 支付失败 2) ]); */ + + var_dump(Lanhuo::auth()); } } \ No newline at end of file diff --git a/app/Helper/Client/Lanhuo.php b/app/Helper/Client/Lanhuo.php index 9761f1f..2c5dbbc 100644 --- a/app/Helper/Client/Lanhuo.php +++ b/app/Helper/Client/Lanhuo.php @@ -93,7 +93,7 @@ class Lanhuo return self::api('/llwf/role/add', $params); } - private static function auth() + public static function auth() { $params = [ 'appId' => config('clients.lanhuo.app_id', ''),