From 865ff6eb7e3c98e6c8973cfec8d2e67ab6de91b1 Mon Sep 17 00:00:00 2001 From: ctexthuang Date: Mon, 25 Nov 2024 11:51:02 +0800 Subject: [PATCH] feat : wx login --- app/Constants/Common/ThirdCode.php | 12 ++++++++++++ app/Service/Api/Login/WxFastLoginService.php | 2 ++ 2 files changed, 14 insertions(+) create mode 100644 app/Constants/Common/ThirdCode.php diff --git a/app/Constants/Common/ThirdCode.php b/app/Constants/Common/ThirdCode.php new file mode 100644 index 0000000..aea312c --- /dev/null +++ b/app/Constants/Common/ThirdCode.php @@ -0,0 +1,12 @@ +user_id = $this->userId; $model->open_id = $this->openId; $model->union_id = $this->unionId; + $model->type = ThirdCode::WX_LOGIN; if (!$model->save()) throw new ErrException('注册失败-00001'); }