| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- <?php
- namespace App\Http\Controllers\Api;
- use App\Service\TestService;
- use Illuminate\Http\Request;
- class TestController extends BaseController
- {
- public function testdwy(Request $request){
- list($bool, $data) = (new TestService())->testdwy($request->all());
- if($bool){
- return $this->json_return(200,'',$data);
- }else{
- return $this->json_return(201,$data);
- }
- }
- public function testdwyget(Request $request){
- list($bool, $data) = (new TestService())->testdwyget($request->all());
- if($bool){
- return $this->json_return(200,'',$data);
- }else{
- return $this->json_return(201,$data);
- }
- }
- public function testdwyput(Request $request){
- list($bool, $data) = (new TestService())->testdwyput($request->all());
- if($bool){
- return $this->json_return(200,'',$data);
- }else{
- return $this->json_return(201,$data);
- }
- }
- public function test(){
- dd(env("maycur_appcode"),env("maycur_appsercet"),getenv("maycur_appcode"),getenv("maycur_appsercet"));
- }
- public function salesOrderGet(Request $request){
- $common_array = $request->common_param;
- list($bool, $data) = (new TestService())->salesOrderGet($request->all(),$common_array);
- if($bool){
- return $this->json_return(200,'',$data);
- }else{
- return $this->json_return(201,$data);
- }
- }
- public function materialAddU8(Request $request){
- $common_array = $request->common_param;
- list($bool, $data) = (new TestService())->materialAddU8($request->all(), $common_array);
- if($bool){
- return $this->json_return(200,'',$data);
- }else{
- return $this->json_return(201,$data);
- }
- }
- public function productInAddU8(Request $request){
- $common_array = $request->common_param;
- list($bool, $data) = (new TestService())->ProductInAddU8($request->all(), $common_array);
- if($bool){
- return $this->json_return(200,'',$data);
- }else{
- return $this->json_return(201,$data);
- }
- }
- public function dispatchAddU8(Request $request){
- $common_array = $request->common_param;
- list($bool, $data) = (new TestService())->DispatchAddU8($request->all(), $common_array);
- if($bool){
- return $this->json_return(200,'',$data);
- }else{
- return $this->json_return(201,$data);
- }
- }
- public function recordList(Request $request){
- list($bool, $data) = (new TestService())->recordList($request->all());
- if($bool){
- return $this->json_return(200,'',$data);
- }else{
- return $this->json_return(201,$data);
- }
- }
- }
|