增加导出解锁时间

This commit is contained in:
lccsw
2025-11-22 18:25:17 +08:00
parent f8d380caf6
commit 3a641407b3
2 changed files with 9 additions and 3 deletions
+5 -1
View File
@@ -1572,7 +1572,11 @@ class Customers extends Wxapp
if (!$row) {
throw new Exception('数据不存在');
}
$res = $this->customers_model->update(['un_lock' => Receiver_customers_model::LOCK_STATUS_2], ['id' => $id]);
$updateData = [
'un_lock' => Receiver_customers_model::LOCK_STATUS_2,
'unlock_time' => date('Y-m-d H:i:s')
];
$res = $this->customers_model->update($updateData, ['id' => $id]);
if (!$res) {
throw new Exception('保存失败', ERR_PARAMS_ERROR);
}