crm客户所属公司字段优化
This commit is contained in:
@@ -40,7 +40,7 @@ class CrmCustomer extends Model
|
|||||||
/**
|
/**
|
||||||
* 允许自动填充模型字段
|
* 允许自动填充模型字段
|
||||||
*/
|
*/
|
||||||
protected $fillable = ['id', 'sn', 'corp_abbr', 'user_id', 'user_sn', 'type', 'grade', 'sex', 'channel_id', 'country_id', 'car_type_id', 'magnitude', 'email', 'phone', 'WhatsApp', 'contacts', 'describe', 'desc_collect', 'address', 'lat', 'lng', 'follow_last', 'follow_next', 'warn', 'follow_remark', 'enter_user_id', 'created_at', 'updated_at', 'deleted_at'];
|
protected $fillable = ['id', 'sn', 'corp_id', 'user_id', 'user_sn', 'type', 'grade', 'sex', 'channel_id', 'country_id', 'car_type_id', 'magnitude', 'email', 'phone', 'WhatsApp', 'contacts', 'describe', 'desc_collect', 'address', 'lat', 'lng', 'follow_last', 'follow_next', 'warn', 'follow_remark', 'enter_user_id', 'created_at', 'updated_at', 'deleted_at'];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 不允许自动填充模型字段
|
* 不允许自动填充模型字段
|
||||||
|
|||||||
@@ -480,7 +480,7 @@ class Emails
|
|||||||
// 同步客户
|
// 同步客户
|
||||||
$crmCustomer = new CrmCustomer();
|
$crmCustomer = new CrmCustomer();
|
||||||
$crmCustomer->sn = $inquiryLogResult->order_no;
|
$crmCustomer->sn = $inquiryLogResult->order_no;
|
||||||
$crmCustomer->corp_abbr = $recipientInfo->corp_id;
|
$crmCustomer->corp_id = $recipientInfo->corp_id;
|
||||||
$crmCustomer->user_id = $assignedUid;
|
$crmCustomer->user_id = $assignedUid;
|
||||||
$crmCustomer->type = 1;
|
$crmCustomer->type = 1;
|
||||||
$crmCustomer->channel_id = $inquiryLogResult->channel;
|
$crmCustomer->channel_id = $inquiryLogResult->channel;
|
||||||
|
|||||||
Reference in New Issue
Block a user