Changeset 2826949
- Timestamp:
- 12/01/2022 11:26:57 AM (3 years ago)
- Location:
- prosolution-wp-client/trunk
- Files:
-
- 3 edited
-
README.txt (modified) (1 diff)
-
prosolwpclient.php (modified) (2 diffs)
-
public/class-prosolwpclient-public.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
prosolution-wp-client/trunk/README.txt
r2826944 r2826949 66 66 67 67 == Changelog == 68 69 = 1.8.7 =70 * Add new mechanic, now jobdetail that have new or pending status can be accessed via workexpert recruitment module71 68 72 69 = 1.8.6 = -
prosolution-wp-client/trunk/prosolwpclient.php
r2826944 r2826949 17 17 * Plugin URI: https://prosolution.com/produkte-und-services/workexpert.html 18 18 * Description: WordPress client for ProSolution 19 * Version: 1.8. 719 * Version: 1.8.6 20 20 * Author: ProSolution 21 21 * Author URI: https://www.prosolution.com … … 39 39 40 40 defined('PROSOLWPCLIENT_PLUGIN_NAME') or define('PROSOLWPCLIENT_PLUGIN_NAME', 'prosolwpclient'); 41 defined('PROSOLWPCLIENT_PLUGIN_VERSION') or define('PROSOLWPCLIENT_PLUGIN_VERSION', '1.8. 7');41 defined('PROSOLWPCLIENT_PLUGIN_VERSION') or define('PROSOLWPCLIENT_PLUGIN_VERSION', '1.8.6'); 42 42 defined('PROSOLWPCLIENT_BASE_NAME') or define('PROSOLWPCLIENT_BASE_NAME', plugin_basename(__FILE__)); 43 43 defined('PROSOLWPCLIENT_ROOT_PATH') or define('PROSOLWPCLIENT_ROOT_PATH', plugin_dir_path(__FILE__)); -
prosolution-wp-client/trunk/public/class-prosolwpclient-public.php
r2826941 r2826949 265 265 $jobid = isset($_REQUEST['jobid']) ? $_REQUEST['jobid'] : ''; 266 266 //$uuid='EAC87A80-9262-4C49-851F7C5FD02FBE64'; 267 $woexPreviewUUID = isset($_REQUEST['woexPreview']) ? $_REQUEST['woexPreview'] : '';267 268 268 if ( $param_type == 'details' ) { 269 269 // project 1440,kev … … 327 327 // var_dump($profession_decode); 328 328 } else { 329 $header_info = CBXProSolWpClient_TableHelper::proSol_apiConfig($issite); 330 $safe_data = array( 331 'jobid' => $jobid, 332 'uuid' => $woexPreviewUUID 333 ); 334 $api_location = 'recruitment/'; 335 $api_body = array( "param" => json_encode( $safe_data ) ); 336 $response = wp_remote_post( $api_config['api_url'] .''. $api_location .'previewisvalid', array( 337 'headers' => $header_info, 338 'body' => $api_body 339 ) ); 340 if ( ! is_wp_error( $response ) ) { 341 $response_data = json_decode( $response['body'] )->data; 342 $result = $response_data->previewstatus; 343 if($result){ 344 $response = wp_remote_get( $api_config['api_url'] . $api_location . 'jobdetail/' . $jobid, array( 'headers' => $header_info ) ); 345 $response_data = json_decode( $response['body'] )->data; 346 347 $job_details_result = $response_data; 348 }else{ 349 $job_details_result = sprintf( __( 'Database returns empty', 'prosolwpclient' ) ); 350 } 351 }else{ 352 $job_details_result = sprintf( __( 'Api response failed. Message: %s', 'prosolwpclient' ), $response->get_error_message() ); 353 } 329 $job_details_result = sprintf( __( 'Database returns empty', 'prosolwpclient' ) ); 354 330 } 355 331
Note: See TracChangeset
for help on using the changeset viewer.