Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
loveisland
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘小敏
loveisland
Commits
6af3baad
Commit
6af3baad
authored
Jun 04, 2026
by
刘小敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改文案登陆为登录
parent
33c68669
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
17 additions
and
17 deletions
+17
-17
Apple.php
addons/shopro/controller/third/Apple.php
+2
-2
Wechat.php
addons/shopro/controller/third/Wechat.php
+2
-2
MiniProgram.php
addons/shopro/service/third/wechat/MiniProgram.php
+7
-7
OpenPlatform.php
addons/shopro/service/third/wechat/OpenPlatform.php
+1
-1
third.js
addons/shopro/uniapp/sheep/api/third.js
+3
-3
index.js
addons/shopro/uniapp/sheep/request/index.js
+1
-1
detail.html
application/admin/view/shopro/user/user/detail.html
+1
-1
No files found.
addons/shopro/controller/third/Apple.php
View file @
6af3baad
...
...
@@ -21,9 +21,9 @@ class Apple extends Common
$result
=
$apple
->
login
(
$payload
);
if
(
$result
)
{
$this
->
success
(
'登
陆
成功'
);
$this
->
success
(
'登
录
成功'
);
}
$this
->
error
(
'登
陆
失败'
);
$this
->
error
(
'登
录
失败'
);
}
}
addons/shopro/controller/third/Wechat.php
View file @
6af3baad
...
...
@@ -44,9 +44,9 @@ class Wechat extends Common
});
if
(
$result
)
{
$this
->
success
(
'登
陆
成功'
);
$this
->
success
(
'登
录
成功'
);
}
$this
->
error
(
'登
陆
失败'
);
$this
->
error
(
'登
录
失败'
);
}
// 获取小程序sessionId+自动登录
...
...
addons/shopro/service/third/wechat/MiniProgram.php
View file @
6af3baad
...
...
@@ -26,13 +26,13 @@ class MiniProgram
{
// https://developers.weixin.qq.com/community/develop/doc/00022c683e8a80b29bed2142b56c01
if
(
empty
(
$this
->
payload
[
'sessionId'
]))
{
error_stop
(
'未获取到登
陆
态, 请重试'
,
-
1
);
error_stop
(
'未获取到登
录
态, 请重试'
,
-
1
);
}
$sessionData
=
redis_cache
(
$this
->
payload
[
'sessionId'
]);
if
(
empty
(
$sessionData
))
{
error_stop
(
'登
陆
态已过期, 请重试'
,
-
1
);
error_stop
(
'登
录
态已过期, 请重试'
,
-
1
);
}
$wechatUser
=
[
...
...
@@ -48,13 +48,13 @@ class MiniProgram
public
function
bind
()
{
if
(
empty
(
$this
->
payload
[
'sessionId'
]))
{
error_stop
(
'未获取到登
陆
态, 请重试'
,
-
1
);
error_stop
(
'未获取到登
录
态, 请重试'
,
-
1
);
}
$sessionData
=
redis_cache
(
$this
->
payload
[
'sessionId'
]);
if
(
empty
(
$sessionData
))
{
error_stop
(
'登
陆
态已过期, 请重试'
,
-
1
);
error_stop
(
'登
录
态已过期, 请重试'
,
-
1
);
}
$wechatUser
=
[
...
...
@@ -70,13 +70,13 @@ class MiniProgram
public
function
getUserPhoneNumber
()
{
if
(
empty
(
$this
->
payload
[
'sessionId'
]))
{
error_stop
(
'未获取到登
陆
态, 请重试'
,
-
1
);
error_stop
(
'未获取到登
录
态, 请重试'
,
-
1
);
}
$sessionData
=
redis_cache
(
$this
->
payload
[
'sessionId'
]);
if
(
empty
(
$sessionData
))
{
error_stop
(
'登
陆
态已过期, 请重试'
,
-
1
);
error_stop
(
'登
录
态已过期, 请重试'
,
-
1
);
}
$phoneInfo
=
$this
->
wechat
->
encryptor
->
decryptData
(
$sessionData
[
'session_key'
],
$this
->
payload
[
'iv'
],
$this
->
payload
[
'encryptedData'
]);
...
...
@@ -109,7 +109,7 @@ class MiniProgram
}
if
(
empty
(
$decryptData
[
'session_key'
]))
{
error_stop
(
'未获取到登
陆
态, 请重试'
,
-
1
);
error_stop
(
'未获取到登
录
态, 请重试'
,
-
1
);
}
// 自动登录流程
...
...
addons/shopro/service/third/wechat/OpenPlatform.php
View file @
6af3baad
...
...
@@ -23,7 +23,7 @@ class OpenPlatform
{
$payload
=
$this
->
payload
;
if
(
empty
(
$payload
[
'code'
]))
{
error_stop
(
'登
陆
失败'
);
error_stop
(
'登
录
失败'
);
}
$config
=
sheep_config
(
'shop.platform.App'
);
...
...
addons/shopro/uniapp/sheep/api/third.js
View file @
6af3baad
...
...
@@ -13,7 +13,7 @@ export default {
data
,
custom
:
{
showSuccess
:
true
,
loadingMsg
:
'登
陆
中'
,
loadingMsg
:
'登
录
中'
,
},
}),
...
...
@@ -50,7 +50,7 @@ export default {
data
,
custom
:
{
showSuccess
:
true
,
loadingMsg
:
'登
陆
中'
,
loadingMsg
:
'登
录
中'
,
},
}),
...
...
@@ -122,7 +122,7 @@ export default {
data
,
custom
:
{
showSuccess
:
true
,
loadingMsg
:
'登
陆
中'
,
loadingMsg
:
'登
录
中'
,
},
}),
},
...
...
addons/shopro/uniapp/sheep/request/index.js
View file @
6af3baad
...
...
@@ -135,7 +135,7 @@ http.interceptors.response.use(
break
;
case
401
:
if
(
isLogin
)
{
errorMessage
=
'您的登
陆
已过期'
;
errorMessage
=
'您的登
录
已过期'
;
}
else
{
errorMessage
=
'请先登录'
;
}
...
...
application/admin/view/shopro/user/user/detail.html
View file @
6af3baad
...
...
@@ -230,7 +230,7 @@
</div>
</el-col>
<el-col
:xs=
"24"
:sm=
"12"
:md=
"12"
:lg=
"12"
:xl=
"12"
>
<div
class=
"left"
>
上次登
陆
时间
</div>
<div
class=
"left"
>
上次登
录
时间
</div>
<div
class=
"right"
>
{{ state.detail.logintime }}
</div>
</el-col>
<el-col
:xs=
"24"
:sm=
"12"
:md=
"12"
:lg=
"12"
:xl=
"12"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment