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
a2c920f5
Commit
a2c920f5
authored
Oct 23, 2018
by
wwccw0591
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pc
parent
6bb5fb4f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
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/DAO/Member.php
View file @
a2c920f5
...
@@ -6,6 +6,7 @@ use Error\CodeConfigModel;
...
@@ -6,6 +6,7 @@ use Error\CodeConfigModel;
use
Error\ErrorModel
;
use
Error\ErrorModel
;
use
Our\Common
;
use
Our\Common
;
use
Our\ImageConst
;
use
Our\ImageConst
;
use
Our\Log
;
use
Our\NameConst
;
use
Our\NameConst
;
use
Our\ApiConst
;
use
Our\ApiConst
;
use
Our\PathConst
;
use
Our\PathConst
;
...
@@ -55,8 +56,10 @@ class MemberModel extends \DAO\AbstractModel
...
@@ -55,8 +56,10 @@ class MemberModel extends \DAO\AbstractModel
$fileName
=
Common
::
format
(
ImageConst
::
memberAvatarPrefix
.
"
{
0
}
"
.
'.jpg'
,
$memberId
);
$fileName
=
Common
::
format
(
ImageConst
::
memberAvatarPrefix
.
"
{
0
}
"
.
'.jpg'
,
$memberId
);
$file
=
$basePath
.
$memberPath
.
$fileName
;
$file
=
$basePath
.
$memberPath
.
$fileName
;
if
(
file_exists
(
$file
)){
if
(
file_exists
(
$file
)){
Log
::
getInstance
()
->
write
(
$file
,
"/data/log/application"
);
$avatar
=
\Our\Common
::
getStaticFile
(
$fileName
,
\Our\ImageConst
::
memberAvatar
);
$avatar
=
\Our\Common
::
getStaticFile
(
$fileName
,
\Our\ImageConst
::
memberAvatar
);
}
else
{
}
else
{
Log
::
getInstance
()
->
write
(
$file
,
"/data/log/application"
);
$memerAvatar
=
$this
->
getInfo
(
$memberId
,
'member_avatar'
);
$memerAvatar
=
$this
->
getInfo
(
$memberId
,
'member_avatar'
);
$avatar
=
$this
->
getMemberAvatarUrl
(
$memberId
,
$memerAvatar
);
$avatar
=
$this
->
getMemberAvatarUrl
(
$memberId
,
$memerAvatar
);
}
}
...
...
conf/application.ini
View file @
a2c920f5
...
@@ -243,7 +243,7 @@ push.open=1
...
@@ -243,7 +243,7 @@ push.open=1
[ccwdevelop : common]
[ccwdevelop : common]
; 数据库配置
; 数据库配置
resources.database.params.driver
=
"pdo_mysql"
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.port
=
3306
resources.database.params.database
=
"qmcs"
resources.database.params.database
=
"qmcs"
resources.database.params.username
=
"root"
resources.database.params.username
=
"root"
...
@@ -253,7 +253,7 @@ resources.database.params.driver_options.1002 = "SET NAMES utf8"
...
@@ -253,7 +253,7 @@ resources.database.params.driver_options.1002 = "SET NAMES utf8"
; 从库配置
; 从库配置
resources.database.slave.params.driver
=
"pdo_mysql"
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.port
=
3306
resources.database.slave.params.database
=
"qmcs"
resources.database.slave.params.database
=
"qmcs"
resources.database.slave.params.username
=
"root"
resources.database.slave.params.username
=
"root"
...
@@ -263,7 +263,7 @@ resources.database.slave.params.driver_options.1002 = "SET NAMES utf8"
...
@@ -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.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.port
=
3306
resources.database.drawSource.params.database
=
"drawSource"
resources.database.drawSource.params.database
=
"drawSource"
resources.database.drawSource.params.username
=
"root"
resources.database.drawSource.params.username
=
"root"
...
...
conf/url.ini
View file @
a2c920f5
...
@@ -89,7 +89,7 @@ config.url.ossHost = "http://qmoss-01.oss-cn-hangzhou.aliyuncs.com"
...
@@ -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.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';
;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