public function actionGet_permissions()
{
    \Yii::$app->response->format = \yii\web\Response::FORMAT_JSON;
    return Auth_Item::find()->where(['owner_user_id' => NULL])->all();
}

就是在要输出的代码之前 加上

\Yii::$app->response->format = \yii\web\Response::FORMAT_JSON;

 

相关文章:

  • 2021-12-02
  • 2021-12-26
  • 2022-12-23
  • 2021-12-09
  • 2022-12-23
  • 2021-11-16
  • 2021-04-20
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-09
  • 2022-12-23
  • 2021-06-20
  • 2021-05-27
相关资源
相似解决方案