12345678910111213141516 |
- <?php namespace App\Http\Controllers;
- use Illuminate\Foundation\Bus\DispatchesCommands;
- use Illuminate\Routing\Controller as BaseController;
- use Illuminate\Foundation\Validation\ValidatesRequests;
- use App\Error;
- abstract class Controller extends BaseController {
- use DispatchesCommands, ValidatesRequests;
- public static function returnValue($data=[],$errorNo=0) {
- return ["rst" => $data, "errno"=>$errorNo.'', "err"=>Error::getError($errorNo).'', "timestamp"=>intval(microtime(true)).''];
- }
- }
|