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
59734138
Commit
59734138
authored
Oct 22, 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
9ea1e709
96ef687d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
6 deletions
+28
-6
MessageService.php
application/models/Business/Message/MessageService.php
+1
-2
Member.php
application/models/DAO/Member.php
+15
-0
StoreGoodsClassGoods.php
application/models/DAO/StoreGoodsClassGoods.php
+1
-1
application.ini
conf/application.ini
+2
-1
url.ini
conf/url.ini
+9
-2
No files found.
application/models/Business/Message/MessageService.php
View file @
59734138
...
...
@@ -157,8 +157,7 @@ class MessageServiceModel extends \Business\AbstractModel
if
(
$type
==
ApiConst
::
memberMessageType
||
$type
==
ApiConst
::
serviceMessageType
)
{
$member
=
\DAO\MemberModel
::
getInstance
();
$memerAvatar
=
$member
->
getInfo
(
$userid
,
'member_avatar'
);
$avatar
=
$member
->
getMemberAvatarUrl
(
$userid
,
$memerAvatar
);
$avatar
=
$member
->
getMemberAvatar
(
$userid
);
}
return
$avatar
;
}
...
...
application/models/DAO/Member.php
View file @
59734138
...
...
@@ -8,6 +8,7 @@ use Our\Common;
use
Our\ImageConst
;
use
Our\NameConst
;
use
Our\ApiConst
;
use
Our\PathConst
;
use
Our\Validate
;
...
...
@@ -48,6 +49,20 @@ class MemberModel extends \DAO\AbstractModel
return
\Our\Common
::
getStaticFile
(
$filename
,
\Our\ImageConst
::
memberAvatar
);
}
public
function
getMemberAvatar
(
$memberId
){
$basePath
=
\Bootstrap
::
getUrlIniConfig
(
'source'
);
$memberPath
=
ImageConst
::
memberAvatar
;
$fileName
=
Common
::
format
(
ImageConst
::
memberAvatarPrefix
.
"
{
0
}
"
.
'.jpg'
,
$memberId
);
$file
=
$basePath
.
$memberPath
.
$fileName
;
if
(
file_exists
(
$file
)){
$avatar
=
\Our\Common
::
getStaticFile
(
$fileName
,
\Our\ImageConst
::
memberAvatar
);
}
else
{
$memerAvatar
=
$this
->
getInfo
(
$memberId
,
'member_avatar'
);
$avatar
=
$this
->
getMemberAvatarUrl
(
$memberId
,
$memerAvatar
);
}
return
$avatar
;
}
//原生方法
public
function
query
()
{
...
...
application/models/DAO/StoreGoodsClassGoods.php
100755 → 100644
View file @
59734138
...
...
@@ -27,7 +27,7 @@ class StoreGoodsClassGoodsModel extends \DAO\AbstractModel {
public
function
getList
(
$where
,
$field
,
$order
=
true
){
$this
->
setDb
(
$this
->
dbName
);
if
(
$order
){
return
$this
->
db
->
select
(
$field
)
->
from
(
$this
->
_tableName
)
->
where
(
$where
)
->
order
(
'gc_sort'
,
'
DE
SC'
)
->
fetchAll
();
return
$this
->
db
->
select
(
$field
)
->
from
(
$this
->
_tableName
)
->
where
(
$where
)
->
order
(
'gc_sort'
,
'
A
SC'
)
->
fetchAll
();
}
return
$this
->
db
->
select
(
$field
)
->
from
(
$this
->
_tableName
)
->
where
(
$where
)
->
fetchAll
();
}
...
...
conf/application.ini
View file @
59734138
...
...
@@ -432,4 +432,5 @@ push.user.service.type=7
elastic.master.host
=
"192.168.1.201"
elastic.master.port
=
"9200"
elastic.master.scheme
=
"http";
\ No newline at end of file
elastic.master.scheme
=
"http"
;
conf/url.ini
View file @
59734138
...
...
@@ -18,7 +18,7 @@ config.url.ossHost = "https://qmoss-01.oss-cn-hangzhou.aliyuncs.com"
config.url.pushHost
=
"172.16.142.15:9503"
;
config.url.indexUrl="/alidata/www/api.shenbd.com/application/library/React"
config.url.libary
=
"/alidata/www/api.shenbd.com/application/library"
config.url.source
=
"/alidata/www/qmcsadmin/public_html/data/upload/"
[product : common]
; 测试环境配置
...
...
@@ -37,6 +37,7 @@ config.url.ossHost = "https://qmoss-01.oss-cn-hangzhou.aliyuncs.com"
config.url.pushHost
=
"127.0.0.1:9503"
;
config.url.indexUrl="/www/web/api_shenbd_com/public_html/application/library/React"
config.url.libary
=
"/www/web/api_shenbd_com/public_html/application/library"
config.url.source
=
"/www/web/admin_shenbd_com/public_html/qmcs/data/upload/"
[pre : common]
; 测试环境配置
...
...
@@ -55,6 +56,8 @@ config.url.ossHost = "https://qmoss-01.oss-cn-hangzhou.aliyuncs.com"
config.url.pushHost
=
"127.0.0.1:9503"
;
config.url.indexUrl="/www/web/apitest_shenbd_com/public_html/application/library/React"
config.url.libary
=
"/www/web/apitest_shenbd_com/public_html/application/library"
config.url.source
=
"/www/web/testadmin_shenbd_com/public_html/data/upload/"
[test : common]
; 测试环境配置
...
...
@@ -85,6 +88,8 @@ 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.storePath = '/data/upload/mall/store';
...
...
@@ -114,6 +119,7 @@ config.url.pushHost="127.0.0.1:9503";
config.url.convert
=
"/usr/local/bin/wkhtmltoimage"
;
config.url.indexUrl="/www/local.qm.com/application/library/React"
config.url.libary
=
"/www/local.qm.com/application/library"
config.url.source
=
"/data/upload/"
; 文件目录
[ccw : common]
...
...
@@ -167,4 +173,5 @@ config.url.pushHost="127.0.0.1:9503";
config.url.convert
=
"/usr/local/bin/wkhtmltoimage"
;
config.url.indexUrl="/www/local.qm.com/application/library/React"
config.url.libary
=
"/www/local.qm.com/application/library"
\ No newline at end of file
config.url.libary
=
"/www/local.qm.com/application/library"
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