zhangzy
2021-04-07 4143b201e989ad70c221644ae06ba96c5f9fd3ea
相册修改
2 files modified
10 ■■■■ changed files
app/Http/Controllers/Api/v1/AlbumController.php 8 ●●●● patch | view | raw | blame | history
app/Http/Controllers/Api/v1/ArchivesController.php 2 ●●● patch | view | raw | blame | history
app/Http/Controllers/Api/v1/AlbumController.php
@@ -29,7 +29,7 @@
        $rule = [
            'classCode' => 'required|integer|min:1',
            'orgId' => 'required|integer|min:1',
            'roleId' => 'required|integer|min:1',
            'roleId' => 'required|string',
        ];
        $error = $this->_validate($request, $rule);
        if(!empty($error))
@@ -41,7 +41,7 @@
            'isDel' => 0,
        ];
        $param = $request->all();
        if($request->roleId == 2026)
        if(in_array("2026",explode(',',$request->roleId)))
        {
            $list = DB::table('anni_album as a')
                ->select('id', 'name', 'classCode', 'jurisdiction', 'coverUrl', 'isDefault',
@@ -185,7 +185,7 @@
    {
        $rule = [
            'orgId' => 'required|integer|min:1',
            'roleId' => 'required|integer|min:1',
            'roleId' => 'required|string',
        ];
        $error = $this->_validate($request, $rule);
        if(!empty($error))
@@ -197,7 +197,7 @@
            'isDel' => 0,
        ];
        $param = $request->all();
        if($request->roleId = 2026)
        if(in_array("2026",explode(',',$request->roleId)))
        {
            $query = DB::table('anni_album as a')
                ->select('id', 'name', 'classCode', 'jurisdiction', 'coverUrl', 'isDefault',
app/Http/Controllers/Api/v1/ArchivesController.php
@@ -48,7 +48,7 @@
            #'studentId' => $request->studentId,
            'isDel' => 0
        ];
        if(isset($request->classCode) && !empty($request->classCode))
        if(isset($request->classCode) && !empty($request->classCode)    )
        {
            $where['classCode'] = $request->classCode;
        }