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
b9c91a29
Commit
b9c91a29
authored
Dec 20, 2018
by
liuyuzhen
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master_dev' of git.shenbd.com:qm-develop/shenbd into lyz_version1
parents
37e425ea
6d165782
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
PathConst.php
application/library/Our/PathConst.php
+1
-1
ShareService.php
application/models/Business/User/ShareService.php
+1
-1
No files found.
application/library/Our/PathConst.php
View file @
b9c91a29
...
@@ -13,7 +13,7 @@ class PathConst {
...
@@ -13,7 +13,7 @@ class PathConst {
const
params
=
"?"
;
const
params
=
"?"
;
const
wxTakeAccessUrl
=
"https://api.weixin.qq.com/cgi-bin/token?grant_type=
{
0}&appid={1}&secret={2
}
"
;
const
wxTakeAccessUrl
=
"https://api.weixin.qq.com/cgi-bin/token?grant_type=
{
0}&appid={1}&secret={2
}
"
;
const
getWxQrCode
=
"https://api.weixin.qq.com/wxa/getwxacodeunlimit?access_token=
{
0
}
"
;
const
getWxQrCode
=
"https://api.weixin.qq.com/wxa/getwxacodeunlimit?access_token=
{
0
}
"
;
const
wxStoreParams
=
"id=
{
0
}
&isScan=1
"
;
const
wxStoreParams
=
"id=
{
0
}
"
;
const
wxGoodsParams
=
"id=
{
0
}
"
;
const
wxGoodsParams
=
"id=
{
0
}
"
;
//1:店铺小程序二维码生成路径,2:商品小程序二维码路径
//1:店铺小程序二维码生成路径,2:商品小程序二维码路径
const
wxStorePath
=
"pages/shops/home/index"
;
const
wxStorePath
=
"pages/shops/home/index"
;
...
...
application/models/Business/User/ShareService.php
View file @
b9c91a29
...
@@ -157,7 +157,7 @@ class ShareServiceModel extends \Business\AbstractModel
...
@@ -157,7 +157,7 @@ class ShareServiceModel extends \Business\AbstractModel
if
(
\Our\ApiConst
::
isWxPublish
){
if
(
\Our\ApiConst
::
isWxPublish
){
//$scene= \Our\Common::format(\Our\PathConst::wxGoodsParams,$data['id']);
//$scene= \Our\Common::format(\Our\PathConst::wxGoodsParams,$data['id']);
$scene
=
\Our\Common
::
format
(
\Our\PathConst
::
wxGoodsParams
,
$data
[
'goodsCommonid'
]);
$scene
=
\Our\Common
::
format
(
\Our\PathConst
::
wxGoodsParams
,
$data
[
'goodsCommonid'
]);
$page
=
\Our\PathConst
::
wx
Store
Path
;
$page
=
\Our\PathConst
::
wx
Goods
Path
;
$res
=
$this
->
getQrcode
(
$page
,
$scene
);
$res
=
$this
->
getQrcode
(
$page
,
$scene
);
if
(
Common
::
isJson
(
$res
)){
if
(
Common
::
isJson
(
$res
)){
$res
=
json_decode
(
$res
,
true
);
$res
=
json_decode
(
$res
,
true
);
...
...
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