fix
This commit is contained in:
parent
9a7e74c7fd
commit
7542d76d39
@ -120,8 +120,7 @@ class ProgramController extends BaseController
|
|||||||
->find();
|
->find();
|
||||||
|
|
||||||
// 获取相关程序(同分类的其他程序)
|
// 获取相关程序(同分类的其他程序)
|
||||||
$relatedPrograms = Db::table('yz_resources')
|
$relatedPrograms = Resources::alias('p')
|
||||||
->alias('p')
|
|
||||||
->join('yz_resources_category c', 'p.cate = c.id')
|
->join('yz_resources_category c', 'p.cate = c.id')
|
||||||
->where('p.cate', $program['cate'])
|
->where('p.cate', $program['cate'])
|
||||||
->where('p.id', '<>', $id)
|
->where('p.id', '<>', $id)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user