|
|
@@ -23,6 +23,7 @@ use app\common\model\master_worker\MasterWorkerAuth;
|
|
|
use app\common\model\master_worker\MasterWorkerScore;
|
|
|
use app\common\model\master_worker_register\MasterWorkerRegister;
|
|
|
use app\common\logic\BaseLogic;
|
|
|
+use app\common\model\notice\NoticeArea;
|
|
|
use app\common\service\ConfigService;
|
|
|
use think\facade\Config;
|
|
|
use think\facade\Db;
|
|
|
@@ -243,6 +244,19 @@ class MasterWorkerRegisterLogic extends BaseLogic
|
|
|
{
|
|
|
$registerInfo = MasterWorkerRegister::findOrEmpty($params['id'])->toArray();
|
|
|
if ($registerInfo && $registerInfo['worker_id']) {
|
|
|
+ if($registerInfo['sale_id'] == 0){
|
|
|
+ // 不同区域用户,通知不同区负责人,销售来源则不用通知
|
|
|
+ $tel = NoticeArea::where(['scene_id'=>110,'city'=>$registerInfo['city']])->value('tel')??'15827105069';
|
|
|
+ // 工程师入驻结果通知:【给工程师的通知】
|
|
|
+ event('Notice', [
|
|
|
+ 'scene_id' => 110,
|
|
|
+ 'params' => [
|
|
|
+ 'user_id' => 0,
|
|
|
+ 'mobile' => $params['mobile'],
|
|
|
+ //'tel' => $tel
|
|
|
+ ]
|
|
|
+ ]);
|
|
|
+ }
|
|
|
$account = MasterWorker::where('id',$registerInfo['worker_id'])->value('account');
|
|
|
event('Notice', [
|
|
|
'scene_id' => 107,
|