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
4b0917a6
Commit
4b0917a6
authored
Dec 04, 2018
by
christ
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
share
parent
4d643d38
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
Index.php
application/controllers/Index.php
+6
-4
ShareService.php
application/models/Business/User/ShareService.php
+1
-0
No files found.
application/controllers/Index.php
View file @
4b0917a6
...
...
@@ -38,8 +38,8 @@ class IndexController extends \Our\Controller_Abstract {
$this
->
memberDb0Redis
=
\Redis\Db0\MemberRedisModel
::
getInstance
();
$paramsStr
=
$this
->
memberDb0Redis
->
tablelpop
(
$this
->
key
);
//
$paramsStr='{
//"desc": "最优质的产品,最实惠的价格,最好的服务质量,欢迎选购",
// $paramsStr='{
//
"desc": "最优质的产品,最实惠的价格,最好的服务质量,欢迎选购",
//"deviceWidth": "828",
//"id": "1050000",
//"imgUrl": "http://qmoss-01.oss-cn-hangzhou.aliyuncs.com/mall/store/05960231407828374.jpg?x-oss-process=image/resize,m_fill,h_186,w_186",
...
...
@@ -55,10 +55,12 @@ class IndexController extends \Our\Controller_Abstract {
//"buyerDistribution": 1,
//"sellerDistribution": 1,
//"startShippingPrice": 2000,
//"freeShippingPrice": 0
//"freeShippingPrice": 0,
//"storeStartTime": "09:00",
//"storeCloseTime": "23:00"
//}';
$paramsStr
=
json_decode
(
$paramsStr
,
true
);
if
(
$paramsStr
[
'type'
]
==
\Our\ApiConst
::
share
Goods
||
$paramsStr
[
'type'
]
==
\Our\ApiConst
::
shareGroup
){
if
(
$paramsStr
[
'type'
]
==
\Our\ApiConst
::
share
Store
||
$paramsStr
[
'type'
]
==
\Our\ApiConst
::
shareSaler
){
$begin
=
strtotime
(
$paramsStr
[
'storeStartTime'
]);
$end
=
strtotime
(
$paramsStr
[
'storeCloseTime'
]);
if
(
$begin
>=
$end
){
...
...
application/models/Business/User/ShareService.php
View file @
4b0917a6
...
...
@@ -201,6 +201,7 @@ 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