| 1234567891011121314151617181920212223242526 |
- <?php
- defined('BASEPATH') OR exit('No direct script access allowed');
- class Aliyuntp extends Start_Controller {
- public function __construct() {
- parent::__construct();
- $this->load->library('session');
- $this->load->_model("Model_aliyunoss","aliyunoss");
- }
- //定义方法的调用规则 获取URI第二段值
- public function _remap($arg,$arg_array)
- {
- if($arg == 'get_oss_sign')//添加
- {
- $this->_get_oss_sign();
- }else{
- defined('BASEPATH') OR exit('No direct script access allowed');
- }
- }
- private function _get_oss_sign(){
- $res = $this->aliyunoss->getOssSign();
- echo json_encode($res,JSON_UNESCAPED_UNICODE);
- }
- }
|