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
468b7b7e
Commit
468b7b7e
authored
Nov 24, 2018
by
christ
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
share
parent
677b22b0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
Index.php
application/controllers/Index.php
+0
-1
ShareService.php
application/models/Business/User/ShareService.php
+9
-7
No files found.
application/controllers/Index.php
View file @
468b7b7e
...
...
@@ -38,7 +38,6 @@ class IndexController extends \Our\Controller_Abstract {
$this
->
memberDb0Redis
=
\Redis\Db0\MemberRedisModel
::
getInstance
();
$paramsStr
=
$this
->
memberDb0Redis
->
tablelpop
(
$this
->
key
);
$paramsStr
=
json_decode
(
$paramsStr
,
true
);
echo
json_encode
(
$paramsStr
);
exit
;
$this
->
_view
->
assign
(
"params"
,
$paramsStr
);
if
(
$paramsStr
[
'type'
]
==
\Our\ApiConst
::
sharePlat
){
$this
->
_view
->
display
(
'index/plat.phtml'
);
...
...
application/models/Business/User/ShareService.php
View file @
468b7b7e
...
...
@@ -36,12 +36,15 @@ class ShareServiceModel extends \Business\AbstractModel
$data
[
'driverType'
]
=
$driverType
;
$data
[
'qrCode'
]
=
$this
->
growQrcode
(
$data
);
if
(
$data
[
'type'
]
==
ApiConst
::
shareStore
||
$data
[
'type'
]
==
ApiConst
::
shareSaler
){
$storeDao
=
\DAO\StoreModel
::
getInstance
(
DbNameConst
::
salveDBConnectName
);
$store
=
$storeDao
->
getStoreInfoCache
(
$data
[
'id'
]);
$data
[
'address'
]
=
$store
[
'store_address'
];
$data
[
'imgUrl'
]
=
$storeDao
->
getStoreLabelSrc
(
$store
[
'store_label'
]);
$data
[
'storeName'
]
=
$store
[
'store_name'
];
$data
[
'desc'
]
=
$store
[
'store_notice'
];
if
(
!
empty
(
$data
[
'id'
])){
$storeDao
=
\DAO\StoreModel
::
getInstance
(
DbNameConst
::
salveDBConnectName
);
$store
=
$storeDao
->
getStoreInfoCache
(
$data
[
'id'
]);
$data
[
'address'
]
=
$store
[
'store_address'
];
$data
[
'imgUrl'
]
=
$storeDao
->
getStoreLabelSrc
(
$store
[
'store_label'
]);
$data
[
'storeName'
]
=
$store
[
'store_name'
];
$data
[
'desc'
]
=
$store
[
'store_notice'
];
}
}
// $data['qrCode']=\Our\RedisHelper::cachedFunction(\Redis\Db0\MemberRedisModel::getInstance(), array(&$this, 'growQrcode'), array($data));
...
...
@@ -139,7 +142,6 @@ class ShareServiceModel extends \Business\AbstractModel
$saveImageName
=
ImageUtil
::
getFileName
()
.
\Our\NameConst
::
jpgSuffix
;
$saveFile
=
$savePath
.
$saveImageName
;
$shell
=
\Our\Common
::
format
(
"
{
0
}
--crop-w 750 --width 750
{
1
}
{
2
}
"
,
$command
,
$convertUrl
,
$saveFile
);
echo
$shell
;
exit
;
system
(
$shell
,
$status
);
if
(
$status
){
\Error\ErrorModel
::
throwException
(
\Error\CodeConfigModel
::
shareGrowImageError
);
...
...
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