Plugin Directory

Changeset 1916714


Ignore:
Timestamp:
07/30/2018 06:45:37 AM (8 years ago)
Author:
doubridge
Message:

服务升级

Location:
doubridge/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • doubridge/trunk/doubridge.php

    r1887299 r1916714  
    1919    protected $logger;
    2020    protected $http;
     21
     22    public $DEBUG = false;
     23    public $SERVER_URL = 'https://app.doubridge.com';
    2124
    2225    public function __construct() {     
     
    6770
    6871        if ( empty( $options['host'] ) ) {
    69             $options['host'] = 'https://www.doubridge.com';
     72            $options['host'] = $this->SERVER_URL;
    7073        }
    7174
  • doubridge/trunk/includes/settings.php

    r1887299 r1916714  
    1515        <tr>
    1616        <th scope="row"><label for="host">Server Url:</label></th>
     17        <?php if( $GLOBALS['doubridge']->DEBUG ): ?>
    1718        <td><input name="doubridge_api[host]" type="text" id="host" value="<?php echo $options['host']; ?>" class="regular-text" /></td>
     19        <?php else: ?>
     20        <td><input name="doubridge_api[host]" type="text" id="host" value="<?php echo $GLOBALS['doubridge']->SERVER_URL; ?>" readonly="readonly" class="regular-text" /></td>
     21        <?php endif; ?>
    1822        </tr>
    1923        <tr>
Note: See TracChangeset for help on using the changeset viewer.