Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
黄成意
/
php_frq_api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
794a7c13
authored
Mar 04, 2021
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调整催价
parent
efa426cd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
app/Model/InquiryModel.php
config/database.php
app/Model/InquiryModel.php
View file @
794a7c13
...
@@ -10,6 +10,7 @@ use Request;
...
@@ -10,6 +10,7 @@ use Request;
use
DB
;
use
DB
;
use
App\Http\Controllers\PermController
;
use
App\Http\Controllers\PermController
;
use
App\Model\InquiryItemsUrgeModel
;
use
App\Model\InquiryItemsUrgeModel
;
use
RedisDB
;
//询价
//询价
class
InquiryModel
extends
Model
class
InquiryModel
extends
Model
...
@@ -226,10 +227,11 @@ class InquiryModel extends Model
...
@@ -226,10 +227,11 @@ class InquiryModel extends Model
// 我的报价
// 我的报价
$v
[
'self_quote'
]
=
$quote
?
$currency_sign
.
$quote
[
$price_field
]
.
'('
.
array_get
(
Config
(
'quote.quote_status'
),
$quote
[
'status'
],
''
)
.
')'
:
''
;
$v
[
'self_quote'
]
=
$quote
?
$currency_sign
.
$quote
[
$price_field
]
.
'('
.
array_get
(
Config
(
'quote.quote_status'
),
$quote
[
'status'
],
''
)
.
')'
:
''
;
// 在Redis集合中检查用户是否被催报价
$res
=
RedisDB
::
sIsMember
(
'frq_inquiry_items_urge'
,
$v
[
'id'
]
.
'-'
.
$user_id
);
$urge
=
$InquiryItemsUrgeModel
->
getLastInfo
(
$v
[
'id'
]);
if
(
$res
)
{
$urge
=
$InquiryItemsUrgeModel
->
getLastInfo
(
$v
[
'id'
]);
if
(
$urge
)
{
$v
[
'inquiry_sn'
]
=
'<div title="'
.
$urge
[
'remark'
]
.
'">'
.
$v
[
'inquiry_sn'
]
.
'<i style="color:red;">(催)</i></div>'
;
$v
[
'inquiry_sn'
]
=
'<div title="'
.
$urge
[
'remark'
]
.
'">'
.
$v
[
'inquiry_sn'
]
.
'<i style="color:red;">(催)</i></div>'
;
}
}
}
}
...
...
config/database.php
View file @
794a7c13
...
@@ -141,11 +141,10 @@ return [
...
@@ -141,11 +141,10 @@ return [
'cluster'
=>
false
,
'cluster'
=>
false
,
'default'
=>
[
'default'
=>
[
'host'
=>
env
(
'REDIS_HOST'
,
'localhost'
),
'host'
=>
env
(
'REDIS_HOST'
,
'localhost'
),
'password'
=>
env
(
'REDIS_PASSWORD'
,
null
),
'password'
=>
env
(
'REDIS_PASSWORD'
,
null
),
'port'
=>
env
(
'REDIS_PORT'
,
6379
),
'port'
=>
env
(
'REDIS_PORT'
,
6379
),
'database'
=>
0
,
'database'
=>
0
,
'prefix'
=>
env
(
'PREFIX'
,
'Activity_'
)
],
],
],
],
...
...
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