Changeset 1640683
- Timestamp:
- 04/19/2017 02:41:58 PM (9 years ago)
- Location:
- lobby-chatwing/trunk
- Files:
-
- 7 edited
-
chatwing-sdk/src/LobbyChatwing/EndpointClient.php (modified) (2 diffs)
-
chatwing-sdk/src/LobbyChatwing/Lobby.php (modified) (1 diff)
-
chatwing-sdk/src/config/actions.php (modified) (1 diff)
-
classes/DataModel.php (modified) (1 diff)
-
classes/ShortCode.php (modified) (2 diffs)
-
lobby-chatwing.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lobby-chatwing/trunk/chatwing-sdk/src/LobbyChatwing/EndpointClient.php
r1513073 r1640683 10 10 use LobbyChatwing\Api\Action; 11 11 use LobbyChatwing\Api\Response; 12 use Exception; 12 13 13 14 class EndpointClient extends Object … … 170 171 $result = json_decode($result, true); 171 172 if (!$result) { 172 throw new \ HttpException(__("Invalid response", LOBBY_CHATWING_TEXTDOMAIN), $responseStatus);173 throw new \Exception(__("Invalid response", LOBBY_CHATWING_TEXTDOMAIN), $responseStatus); 173 174 } 174 175 175 176 $result['http_code'] = $responseStatus; 176 } catch (\ HttpException $e) {177 } catch (\Exception $e) { 177 178 $result = array( 178 179 'success' => false, -
lobby-chatwing/trunk/chatwing-sdk/src/LobbyChatwing/Lobby.php
r1513073 r1640683 31 31 $api = new Api(''); 32 32 $domain = $api->getDomain(); 33 $this->baseUrl = $domain[$api->getEnv()]. "/ lobby/". $this->getId();33 $this->baseUrl = $domain[$api->getEnv()]. "/service/embed/". $this->getId(); 34 34 35 35 return $this->baseUrl; -
lobby-chatwing/trunk/chatwing-sdk/src/config/actions.php
r1513073 r1640683 6 6 */ 7 7 return array( 8 'app/float_ui _domain/list' => array(8 'app/float_ui/list' => array( 9 9 'type' => 'get', 10 10 'auth' => true -
lobby-chatwing/trunk/classes/DataModel.php
r1513073 r1640683 67 67 try { 68 68 $api = ChatwingContainer::getInstance()->get('api'); 69 $response = $api->call('app/float_ui _domain/list',array('app_id' => get_option('chatwing_default_app_id_lobby')));69 $response = $api->call('app/float_ui/list',array('app_id' => get_option('chatwing_default_app_id_lobby'))); 70 70 if ($response->isSuccess()) { 71 71 $boxes = $response->get('data'); -
lobby-chatwing/trunk/classes/ShortCode.php
r1513073 r1640683 17 17 { 18 18 $model = DataModel::getInstance(); 19 $width_lobby = $model->getOption('width_lobby') ? $model->getOption('width_lobby') : "600"; 20 $height_lobby = $model->getOption('height_lobby') ? $model->getOption('height_lobby') : "800"; 21 19 22 $defaultAttributes = array( 20 'width_lobby' => $ model->getOption('width_lobby'),21 'height_lobby' => $ model->getOption('height_lobby')23 'width_lobby' => $width_lobby, 24 'height_lobby' => $height_lobby 22 25 ); 23 26 … … 32 35 $box->setId($params['id']); 33 36 34 37 $height_lobby = $params['height_lobby'] ? $params['height_lobby'] : "400"; 35 38 $box->setData('width_lobby', $params['width_lobby']); 36 $box->setData('height_lobby', $ params['height_lobby']);39 $box->setData('height_lobby', $height_lobby); 37 40 38 41 return $box->getIframe(); -
lobby-chatwing/trunk/lobby-chatwing.php
r1638812 r1640683 9 9 Plugin URI: http://chatwing.com/ 10 10 Description: Chatwing offers an unlimited live website or blog chat experience. This chat widget specializes in delivering real-time communication at any given time. Engage in a free chat with visitors and friends! 11 Version: 1.0. 411 Version: 1.0.5 12 12 Author: chatwing 13 13 Author URI: http://chatwing.com/ … … 16 16 */ 17 17 18 define('LOBBY_CHATWING_VERSION', '1.0. 4');18 define('LOBBY_CHATWING_VERSION', '1.0.5'); 19 19 define('LOBBY_CHATWING_TEXTDOMAIN', 'lobby-chatwing'); 20 20 define('LOBBY_CHATWING_PATH', dirname(__FILE__)); -
lobby-chatwing/trunk/readme.txt
r1638812 r1640683 47 47 48 48 == Changelog == 49 = 1.0.5 = 50 * fixed bug : Class 'HttpException' not found 49 51 = 1.0.4 = 50 52 * Update feature lobby.
Note: See TracChangeset
for help on using the changeset viewer.