api_customers_321
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user