Merge branch 'develop'

This commit is contained in:
mzl
2025-08-07 10:16:22 +08:00
parent f9b82185a2
commit 63e532f199
23 changed files with 3038 additions and 133 deletions
+26
View File
@@ -0,0 +1,26 @@
<?php
namespace app\crmAdmin\logic;
use app\crm\model\Customer;
class CustomerLogic
{
public function status(int $id,int $status)
{
$customer = Customer::withTrashed()->find($id);
$customer->status = $status;
$res = $customer->save();
return $res;
}
public function forceDelete(int $id)
{
$customer = Customer::withTrashed()->find($id);
//强制删除
$res = $customer->forceDelete();
return $res;
}
}