This commit is contained in:
cxdbz committed 2019-10-16 19:42:24 +08:00
1 parent a93c822a84
commit ae35537eb7
3 files changed
+11 -3

No files matched your search

+2
View File
@@ -557,7 +557,9 @@ class Kaohao extends Base
$chengji = new \app\chengji\model\Chengji;
$chengji->where('kaohaoid','in',$id)->delete();
$data = true;
dump('成功');
} catch (\Exception $e) {
dump('失败');
$data = false;
// 回滚事务
$db::rollback();
+7 -1
View File
@@ -67,7 +67,13 @@ class Banji extends Base
$numnj = array_flip(array_keys($njname));
$numname = ($numnj[$nj] + 1).'.'.$bj;
if(array_key_exists($nj,$numnj))
{
$numname = ($numnj[$nj] + 1).'级'.$bj.'班';
}else{
$numname = $nj.'级'.$bj.'班';
}
return $numname;
}
+2 -2
View File
@@ -17,9 +17,9 @@ return [
// 数据库名
'database' => 'chengji',
// 用户名
'username' => 'jkp',
'username' => 'root',
// 密码
'password' => '123456',
'password' => '',
// 端口
'hostport' => '',
// 连接dsn