fix : Member 모델에서 User 모델로 변경
This commit is contained in:
@@ -3,9 +3,7 @@
|
||||
namespace App\Services;
|
||||
|
||||
use App\Helpers\ApiResponse;
|
||||
use App\Models\MemberCompany;
|
||||
use App\Models\Products\CommonCode;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
class ProductService
|
||||
{
|
||||
@@ -20,18 +18,5 @@ public static function getCategory(string $userToken, bool $debug = false)
|
||||
return ApiResponse::response('get', $query, true);
|
||||
}
|
||||
|
||||
public static function getMyInfo($request, bool $debug = false)
|
||||
{
|
||||
|
||||
$member = $request->user();
|
||||
$company = MemberCompany::where('mc_num',$member->tn_num)->first();
|
||||
$data=[
|
||||
'member' => $member,
|
||||
'company' => $company
|
||||
];
|
||||
|
||||
return ApiResponse::response('result', $data, $debug);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user