Skip to content

Commit

Permalink
增加分类删除API
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoxinpro committed Jan 10, 2019
1 parent 31a19f9 commit a05942a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Application/Home/Controller/ApiController.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,12 @@ public function aclass() {
break;

case 'del':
$arrData['data'] = GetClassIdData($data['classid'], $uid);
if (intval(GetClassAccountNum($data['classid'],$uid)) > 0) {
$DbData = GetClassIdData($data['classid'],$uid);
$arrData['data'] = array(false, ''.$DbData[1]['classname'].'】分类数据不为空,请先处理记账数据!');
}else{
$arrData['data'] = DelClass($data['classid'],$uid);
}
break;

case 'move':
Expand Down

0 comments on commit a05942a

Please sign in to comment.