api_customers_321

This commit is contained in:
dengbw
2023-03-21 10:05:38 +08:00
committed by lccsw
parent 91386b8178
commit 4a1d14a2ae
@@ -1233,6 +1233,10 @@ class Customers extends Wxapp
$this->biz_id && $where['biz_id'] = $this->biz_id;
$res_cus = $this->customers_model->get($where);
if ($res_cus) {
if ($res_cus['wxqy'] == 0) {//更新为企微好友
$res_cus['wxqy'] = 1;
$this->customers_model->update(['wxqy' => $res_cus['wxqy']], ['id' => $res_cus['id']]);
}
$rows = [$res_cus];
$re = $this->listCustomerField(['rows' => $rows, 'biz_type' => $biz_type, 'group_id' => $group_id]);
count($re) && $re_item = $re[0];