You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
simple-yewu/common/models/Message.php

16 lines
307 B

5 years ago
<?php
namespace common\models;
use Yii;
use yii\base\Model;
class Message extends Model{
public static function getMessage($success = false,$msg='操作失败!',$content=''){
return [
'success'=>$success,
'msg'=>$msg,
'content'=>$content
];
}
}