Skip to content

Commit

Permalink
测试环境不限制跨域访问
Browse files Browse the repository at this point in the history
  • Loading branch information
Wscats committed Apr 12, 2017
1 parent 9d21e1d commit 360badf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion application/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
| 每次更改项目地址时候必须对应更改 By wscats
*/

$config['base_url'] = 'http://localhost:81/news/php/';
$config['base_url'] = 'http://10.3.132.67:81/news/php/';

/*
|--------------------------------------------------------------------------
Expand Down
1 change: 1 addition & 0 deletions application/controllers/login_api.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ function register() {
'user_name' => $this->input->post('params')['username'],
'password' => md5($this->input->post('params')['password'])
);
//var_dump($this->input->post());
$this ->login_model->register_user($data);
//取用户数据
$data_from_db = $this -> login_model -> show_user($data['user_name']);
Expand Down

0 comments on commit 360badf

Please sign in to comment.