Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
my-yaf-project
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
chenchuanwen
my-yaf-project
Commits
5395eb15
Commit
5395eb15
authored
Oct 22, 2018
by
liuyuzhen
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master_dev' of git.shenbd.com:qm-develop/shenbd into lyz
parents
69d93a1a
050d4fb1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
PathConst.php
application/library/Our/PathConst.php
+1
-1
ShareService.php
application/models/Business/User/ShareService.php
+7
-2
No files found.
application/library/Our/PathConst.php
100755 → 100644
View file @
5395eb15
...
...
@@ -24,7 +24,7 @@ class PathConst {
const
downLoadQrcode
=
"http://www.shenbd.com"
;
const
sharePlat
=
"http://www.shenbd.com"
;
const
shareStore
=
"http://share.shenbd.com/share.html?type=store&id=
{
0
}
"
;
const
timeParam
=
'¶m='
.
TIMESTAMP
;
const
cutVertical
=
'|'
;
...
...
application/models/Business/User/ShareService.php
100755 → 100644
View file @
5395eb15
...
...
@@ -66,6 +66,9 @@ class ShareServiceModel extends \Business\AbstractModel
));
return
$res
;
}
public
function
getQrUrl
(
$id
){
return
Common
::
format
(
PathConst
::
shareStore
,
$id
);
}
public
function
growQrcode
(
$data
){
$this
->
memberDb0Redis
=
\Redis\Db0\MemberRedisModel
::
getInstance
();
if
(
$data
[
'type'
]
==
\Our\ApiConst
::
shareStore
){
...
...
@@ -81,11 +84,13 @@ class ShareServiceModel extends \Business\AbstractModel
$this
->
memberDb0Redis
->
tableCacheSet
(
$fileName
,
$url
,
ApiConst
::
zero
);
return
$url
;
}
else
{
return
PathConst
::
wxDefaultPath
;
return
$this
->
getQrUrl
(
$data
[
'id'
]);
// return PathConst::wxDefaultPath;
}
}
else
{
return
$this
->
getQrUrl
(
$data
[
'id'
]);
//不是微信分享就是普通下载的二维码图片
return
PathConst
::
downLoadQrcode
;
//
return PathConst::downLoadQrcode;
}
}
if
(
$data
[
'type'
]
==
\Our\ApiConst
::
shareGoods
){
...
...
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