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
0c6ebc26
Commit
0c6ebc26
authored
Sep 07, 2018
by
wwccw0591
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pc
parent
142f17a0
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
NameConst.php
application/library/Our/NameConst.php
+1
-1
ShopkeeperService.php
application/models/Business/Store/ShopkeeperService.php
+5
-1
index.php
public/index.php
+1
-0
No files found.
application/library/Our/NameConst.php
View file @
0c6ebc26
...
@@ -154,7 +154,7 @@ class NameConst {
...
@@ -154,7 +154,7 @@ class NameConst {
const
rightBracket
=
']'
;
const
rightBracket
=
']'
;
const
elasticName
=
'elastic.master'
;
const
elasticName
=
'elastic.master'
;
const
shopkeeper
=
'
orders
'
;
const
shopkeeper
=
'
shenbdindex
'
;
const
cancelUnPayedOrderTimePrefix
=
'cancelUnPayedOrderTime'
;
const
cancelUnPayedOrderTimePrefix
=
'cancelUnPayedOrderTime'
;
const
cancelUnReceivedOrderTimePrefix
=
'cancelUnReceivedOrderTime'
;
const
cancelUnReceivedOrderTimePrefix
=
'cancelUnReceivedOrderTime'
;
...
...
application/models/Business/Store/ShopkeeperService.php
View file @
0c6ebc26
...
@@ -527,7 +527,7 @@ class ShopkeeperServiceModel extends \Business\AbstractModel
...
@@ -527,7 +527,7 @@ class ShopkeeperServiceModel extends \Business\AbstractModel
{
{
$elasticsTool
=
ElasticsToolModel
::
getInstance
(
'orders'
);
$elasticsTool
=
ElasticsToolModel
::
getInstance
(
'orders'
);
//
$elasticsTool->deleteIndex();
$elasticsTool
->
deleteIndex
();
$indexsFiled
=
array
(
$indexsFiled
=
array
(
'goodsName'
=>
array
(
'goodsName'
=>
array
(
'type'
=>
'string'
,
'type'
=>
'string'
,
...
@@ -537,6 +537,10 @@ class ShopkeeperServiceModel extends \Business\AbstractModel
...
@@ -537,6 +537,10 @@ class ShopkeeperServiceModel extends \Business\AbstractModel
'type'
=>
'string'
,
'type'
=>
'string'
,
"analyzer"
=>
"ik_max_word"
"analyzer"
=>
"ik_max_word"
),
),
'storeName'
=>
array
(
'type'
=>
'string'
,
"analyzer"
=>
"ik_max_word"
),
);
);
$elasticsTool
->
createIkField
(
$indexsFiled
);
$elasticsTool
->
createIkField
(
$indexsFiled
);
}
}
...
...
public/index.php
View file @
0c6ebc26
...
@@ -9,6 +9,7 @@ if(APP_ENV=='develop'){
...
@@ -9,6 +9,7 @@ if(APP_ENV=='develop'){
}
}
if
(
APP_ENV
==
'test'
||
APP_ENV
==
'pre'
){
if
(
APP_ENV
==
'test'
||
APP_ENV
==
'pre'
){
if
(
isset
(
$_POST
[
'data'
][
'debug'
])
&&!
empty
(
$_POST
[
'data'
][
'debug'
])){
if
(
isset
(
$_POST
[
'data'
][
'debug'
])
&&!
empty
(
$_POST
[
'data'
][
'debug'
])){
define
(
"DEBUG"
,
1
);
error_reporting
(
E_ALL
);
error_reporting
(
E_ALL
);
}
else
{
}
else
{
error_reporting
(
0
);
error_reporting
(
0
);
...
...
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