|
@@ -4,10 +4,12 @@ namespace App\Console\Commands;
|
4
|
4
|
|
5
|
5
|
use App\Log;
|
6
|
6
|
use App\Models\Customer\BatchAddCustomerDetails;
|
|
7
|
+use App\Models\CustomerDetails;
|
7
|
8
|
use App\Models\Tag;
|
8
|
9
|
use App\RedisModel;
|
9
|
10
|
use App\Service\wechatWorkService;
|
10
|
11
|
use App\Support\EmailQueue;
|
|
12
|
+use App\Support\qyApi\QyCommon;
|
11
|
13
|
use Illuminate\Console\Command;
|
12
|
14
|
|
13
|
15
|
class AddTagForBatchAddCustomer extends Command
|
|
@@ -100,7 +102,9 @@ class AddTagForBatchAddCustomer extends Command
|
100
|
102
|
# 是否需要修改备注
|
101
|
103
|
$remark = $taskInfo->remark ?? '';
|
102
|
104
|
if($remark) { // 设置备注
|
103
|
|
- qyApiQyCommon::update_customer_remark();
|
|
105
|
+ QyCommon::update_customer_remark($corpid, $userId, $externalUserid, $remark);
|
|
106
|
+ CustomerDetails::suffix($corpid)->where('corpid', $corpid)->where('user_id', $userId)
|
|
107
|
+ ->where('external_userid', $externalUserid)->update(['remark' => $remark]);
|
104
|
108
|
}
|
105
|
109
|
|
106
|
110
|
# 是否需要打标签
|