Merge branch 'feature/crmAdmin0717' into develop
This commit is contained in:
@@ -272,6 +272,7 @@ class CustomerController extends BaseController
|
|||||||
];
|
];
|
||||||
|
|
||||||
if (Util::isEmpty($id)) {
|
if (Util::isEmpty($id)) {
|
||||||
|
$data['enter_user_id'] = $request->user->uid;
|
||||||
$res = Customer::create($data);
|
$res = Customer::create($data);
|
||||||
} else {
|
} else {
|
||||||
unset($data['grade']);
|
unset($data['grade']);
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
namespace app\crm\service;
|
namespace app\crm\service;
|
||||||
|
|
||||||
|
use app\common\model\User;
|
||||||
use app\crm\logic\CustomerLogic;
|
use app\crm\logic\CustomerLogic;
|
||||||
use app\crm\model\CarType;
|
use app\crm\model\CarType;
|
||||||
use app\crm\model\Channel;
|
use app\crm\model\Channel;
|
||||||
@@ -145,6 +146,8 @@ class CustomerService
|
|||||||
$customer['channel_name'] = empty($customer['channel_id'])?'':Channel::where(['id'=>$customer['channel_id']])->value($nameLang);
|
$customer['channel_name'] = empty($customer['channel_id'])?'':Channel::where(['id'=>$customer['channel_id']])->value($nameLang);
|
||||||
// $customer['last_follow'] = $last_follow;
|
// $customer['last_follow'] = $last_follow;
|
||||||
|
|
||||||
|
$customer['enter_user_name'] = empty($customer['enter_user_id']) ? '' : User::find($customer['enter_user_id'])->value('name');
|
||||||
|
|
||||||
if ($tag) {
|
if ($tag) {
|
||||||
foreach ($customer['tags'] as &$tag) {
|
foreach ($customer['tags'] as &$tag) {
|
||||||
$tag['names'] = unserialize($tag['names']);
|
$tag['names'] = unserialize($tag['names']);
|
||||||
|
|||||||
Reference in New Issue
Block a user