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
5dcc909a
Commit
5dcc909a
authored
Oct 23, 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
8736e03f
0acf0519
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
6 deletions
+11
-6
ShareService.php
application/models/Business/User/ShareService.php
+4
-2
Member.php
application/models/DAO/Member.php
+3
-0
application.ini
conf/application.ini
+3
-3
url.ini
conf/url.ini
+1
-1
No files found.
application/models/Business/User/ShareService.php
View file @
5dcc909a
...
...
@@ -106,11 +106,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
PathConst
::
downLoadQrcode
;
return
$this
->
getQrUrl
(
$data
[
'id'
]);
// return PathConst::downLoadQrcode;
}
}
if
(
$data
[
'type'
]
==
\Our\ApiConst
::
sharePlat
){
...
...
application/models/DAO/Member.php
View file @
5dcc909a
...
...
@@ -6,6 +6,7 @@ use Error\CodeConfigModel;
use
Error\ErrorModel
;
use
Our\Common
;
use
Our\ImageConst
;
use
Our\Log
;
use
Our\NameConst
;
use
Our\ApiConst
;
use
Our\PathConst
;
...
...
@@ -55,8 +56,10 @@ class MemberModel extends \DAO\AbstractModel
$fileName
=
Common
::
format
(
ImageConst
::
memberAvatarPrefix
.
"
{
0
}
"
.
'.jpg'
,
$memberId
);
$file
=
$basePath
.
$memberPath
.
$fileName
;
if
(
file_exists
(
$file
)){
Log
::
getInstance
()
->
write
(
$file
,
"/data/log/test"
);
$avatar
=
\Our\Common
::
getStaticFile
(
$fileName
,
\Our\ImageConst
::
memberAvatar
);
}
else
{
Log
::
getInstance
()
->
write
(
$file
,
"/data/log/test"
);
$memerAvatar
=
$this
->
getInfo
(
$memberId
,
'member_avatar'
);
$avatar
=
$this
->
getMemberAvatarUrl
(
$memberId
,
$memerAvatar
);
}
...
...
conf/application.ini
View file @
5dcc909a
...
...
@@ -243,7 +243,7 @@ push.open=1
[ccwdevelop : common]
; 数据库配置
resources.database.params.driver
=
"pdo_mysql"
resources.database.params.hostname
=
"192.168.
1.201
"
resources.database.params.hostname
=
"192.168.
80.18
"
resources.database.params.port
=
3306
resources.database.params.database
=
"qmcs"
resources.database.params.username
=
"root"
...
...
@@ -253,7 +253,7 @@ resources.database.params.driver_options.1002 = "SET NAMES utf8"
; 从库配置
resources.database.slave.params.driver
=
"pdo_mysql"
resources.database.slave.params.hostname
=
"192.168.
1.201
"
resources.database.slave.params.hostname
=
"192.168.
80.18
"
resources.database.slave.params.port
=
3306
resources.database.slave.params.database
=
"qmcs"
resources.database.slave.params.username
=
"root"
...
...
@@ -263,7 +263,7 @@ resources.database.slave.params.driver_options.1002 = "SET NAMES utf8"
; 从库配置
resources.database.drawSource.params.driver
=
"pdo_mysql"
resources.database.drawSource.params.hostname
=
"192.168.
1.201
"
resources.database.drawSource.params.hostname
=
"192.168.
80.18
"
resources.database.drawSource.params.port
=
3306
resources.database.drawSource.params.database
=
"drawSource"
resources.database.drawSource.params.username
=
"root"
...
...
conf/url.ini
View file @
5dcc909a
...
...
@@ -89,7 +89,7 @@ config.url.ossHost = "http://qmoss-01.oss-cn-hangzhou.aliyuncs.com"
;推送域名
config.url.pushHost
=
"127.0.0.1:9503"
;
config.url.source
=
"E:/WAMP/www/www.qm.com/data/upload/"
;
config.url.source="E:/WAMP/www/www.qm.com/data/upload/"
; 文件目录
;店铺图片报错目录
;config.url.storePath = '/data/upload/mall/store';
...
...
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