laravel接口规范
class jiekou {
public $status; //状态,访问成功0 不成功1
public $message; //信息返回 0:SUCCESS 1:faild
public function toJson{
return json_encode($this,JSON_UNESCAPED_UNICODE); //将PHP对象转换成json,并转译字符串
}
}
class jiekou {
public $status; //状态,访问成功0 不成功1
public $message; //信息返回 0:SUCCESS 1:faild
public function toJson{
return json_encode($this,JSON_UNESCAPED_UNICODE); //将PHP对象转换成json,并转译字符串
}
}