update
This commit is contained in:
parent
32d0e2fe7b
commit
23d58ab61a
@ -18,6 +18,7 @@ namespace app\adminapi\logic\custom;
|
||||
use app\common\model\custom\Custom;
|
||||
use app\common\logic\BaseLogic;
|
||||
use app\common\model\custom\CustomContacts;
|
||||
use app\common\model\custom\CustomFollow;
|
||||
use app\common\model\GeoArea;
|
||||
use app\common\model\GeoCity;
|
||||
use app\common\model\GeoProvince;
|
||||
@ -154,8 +155,10 @@ class CustomLogic extends BaseLogic
|
||||
Db::startTrans();
|
||||
try {
|
||||
$custom_contacts_ids = CustomContacts::where('custom_id',$params['id'])->column('id');
|
||||
$custom_follow_ids = CustomFollow::where('custom_id',$params['id'])->column('id');
|
||||
Custom::destroy($params['id']);
|
||||
CustomContacts::destroy($custom_contacts_ids);
|
||||
CustomFollow::destroy($custom_follow_ids);
|
||||
Db::commit();
|
||||
return true;
|
||||
} catch (\Exception $e) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user