Commit 794a7c13 by 朱继来

调整催价

parent efa426cd
......@@ -10,6 +10,7 @@ use Request;
use DB;
use App\Http\Controllers\PermController;
use App\Model\InquiryItemsUrgeModel;
use RedisDB;
//询价
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'], '').')' : '';
// 在Redis集合中检查用户是否被催报价
$res = RedisDB::sIsMember('frq_inquiry_items_urge', $v['id'].'-'.$user_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>';
}
}
......
......@@ -145,7 +145,6 @@ return [
'password' => env('REDIS_PASSWORD', null),
'port' => env('REDIS_PORT', 6379),
'database' => 0,
'prefix' =>env('PREFIX','Activity_')
],
],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment