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', ''),