修改理车宝接口手机号脱敏和h5提交补贴信息短信通知

This commit is contained in:
lcc
2025-10-05 10:28:58 +08:00
parent 62dfc759c8
commit 94e7bb0ca3
3 changed files with 37 additions and 6 deletions
@@ -166,6 +166,10 @@ class AutoUserCouponEntity
//跟新客户为订单客户
$this->ci->receiver_customers_model->update(['status' => 2], ['id' => $customersRow['id']]);
$this->ci->db->trans_commit();
//发送短信给店长
$this->ci->load->model('app/licheb/app_licheb_users_model');
$this->ci->app_licheb_users_model->set_db('ssdb');
$this->ci->app_licheb_users_model->sendSmsToManager($bizId, "门店新增了一个订单,请及时到小程序“理车宝-订单”进行处理。");
return new MyRESPONSE(EXIT_SUCCESS, '核销成功');
} catch (Exception $e) {
$this->ci->db->trans_rollback();
@@ -43,4 +43,22 @@ class App_licheb_users_model extends HD_Model
{
return $this->group_arr;
}
/**
* 给店长发短信
* @param $bizId
* @param $content
* @return true
*/
public function sendSmsToManager($bizId, $content)
{
$where = array('biz_id' => $bizId, 'status' => 1, 'group_id' => 2);
$res_u = $this->select($where);
if ($res_u) {
foreach ($res_u as $v) {
ems_sms($v['mobile'], $content);
}
}
return true;
}
}