* adjus for bind zentao.

This commit is contained in:
wangyidong
2016-11-30 09:01:30 +08:00
parent 8e4c380397
commit f0548adfd3
2 changed files with 4 additions and 6 deletions
+2 -2
View File
@@ -89,7 +89,8 @@ class admin extends control
if($_POST)
{
$response = $this->admin->bindByAPI();
if($response == 'success')
$response = json_decode($response);
if($response->result == 'success')
{
$this->loadModel('setting')->setItem('system.common.global.community', $this->post->account);
echo js::alert($this->lang->admin->bind->success);
@@ -97,7 +98,6 @@ class admin extends control
}
else
{
$response = json_decode($response);
if($response->result == 'fail') die(js::alert($response->message));
}
}
+2 -4
View File
@@ -31,8 +31,7 @@
<th class='w-100px'><?php echo $lang->user->account;?></th>
<td>
<div class="required required-wrapper"></div>
<?php echo html::input('account', '', "class='form-control'");?>
<div class='help-block'><?php echo $lang->admin->register->lblAccount;?></div>
<?php echo html::input('account', '', "class='form-control' placeholder='{$lang->admin->register->lblAccount}'");?>
</td>
</tr>
<tr>
@@ -55,8 +54,7 @@
<th><?php echo $lang->user->password;?></th>
<td>
<div class="required required-wrapper"></div>
<?php echo html::password('password1', '', "class='form-control'");?>
<div class='help-block'><?php echo $lang->admin->register->lblPasswd;?></div>
<?php echo html::password('password1', '', "class='form-control' placeholder='{$lang->admin->register->lblPasswd}'");?>
</td>
</tr>
<tr>