add image : GWM

This commit is contained in:
Gowtham M 2025-12-10 09:55:20 +05:30
parent 62d9141601
commit f0e4dba9e4
4 changed files with 9 additions and 6 deletions

View File

@ -244,7 +244,7 @@ class ApiServiceController extends BaseController
}
public function getWellnessUrl()
{
@ -358,7 +358,7 @@ class ApiServiceController extends BaseController
// ---------- STEP 1: Build plaintext payload ----------
$plainPayload = json_encode([
"email" => $email,
"corporateId" => env('VIDAL_WELLNESS_CORPORATE_ID'),
// "corporateId" => env('VIDAL_WELLNESS_CORPORATE_ID'),
"urlIdentifier" => env('VIDAL_WELLNESS_URL_IDENTIFIER')
]);
@ -373,7 +373,7 @@ class ApiServiceController extends BaseController
// ---------- STEP 3: Call Authentication API ----------
$requestBody = json_encode([
"payload" => $encryptedPayload,
"source" => "portal",
"source" => env('VIDAL_WELLNESS_SUB_PARTNER_ID'),
"subPartnerId" => env('VIDAL_WELLNESS_SUB_PARTNER_ID')
]);

View File

@ -3176,7 +3176,9 @@ class EmployeeRestController extends AdminController
{
try {
$img = $this->addImgModel->where('is_active', 1)->findAll();
$client_id = $this->request->getGet('client_id');
$img = $this->addImgModel->where('is_active', 1)->where('client_id',$client_id)->findAll();
if (count($img) > 0) {
$data = [];

View File

@ -620,8 +620,8 @@ class MediAssistApiController extends BaseController
$headers = [
'Content-Type: application/json',
'Username:' .'NhanceUsr',
'Password:' .'NhU$p&Cc5wGQbr2',
'Username:' . getenv('MEDI_ASSIST_API_USERNAME'),
'Password:' . getenv('MEDI_ASSIST_API_PASSWORD'),
];
$body = [

View File

@ -13,6 +13,7 @@ class AddImgModel extends Model
"created_by",
"updated_by",
"is_active",
"client_id",
];