(self, get)
return {'status': True, 'msg': public.getMsg('DEL_SUBDIRBIND', (','.join(del_successfully),)),
                'error': del_failed,
                'success': del_successfully}
@name 批量删除网站
            @author zhwen<2020-11-17>
            @param bind_ids 1,2,3
def delete_dir_bind_multiple(self, get):
        '''
            @name 批量删除网站
            @author zhwen<2020-11-17>
            @param bind_ids 1,2,3
        '''
        bind_ids = get.bind_ids.split(',')
        del_successfully = []
        del_failed = {}
        for bind_id in bind_ids:
            get.id = bind_id
            domain = public.M('binding').where("id=?", (get.id,)).getField('domain')
            if not domain:
                continue
            try:
                self.DelDirBinding(get, multiple=1)
                del_successfully.append(domain)
            except:
                del_failed[domain] = public.getMsg('DEL_ERROR1')
                pass
        public.serviceReload()
        return {'status': True, 'msg': public.getMsg('DEL_SUBDIRBIND', (','.join(del_successfully),)),
                'error': del_failed,
                'success': del_successfully}
def delete_dir_bind_multiple ( self , get ) : bind_ids = get . bind_ids . split ( ',' ) del_successfully = [ ] del_failed = { } for bind_id in bind_ids : get . id = bind_id domain = public . M ( 'binding' ) . where ( "id=?" , ( get . id , ) ) . getField ( 'domain' ) if not domain : continue try : self . DelDirBinding ( get , multiple = 1 ) del_successfully . append ( domain ) except : del_failed [ domain ] = public . getMsg ( 'DEL_ERROR1' ) pass public . serviceReload ( ) return { 'status' : True , 'msg' : public . getMsg ( 'DEL_SUBDIRBIND' , ( ',' . join ( del_successfully ) , ) ) , 'error' : del_failed , 'success' : del_successfully }