购买生产环境,这两个在开发与使用时有什么区别?
另外,在开发环境中:
<?php
defined(‘BASEPATH’) OR exit(‘No direct script access allowed’);
use QCloud_WeApp_SDK\Mysql\Mysql as DB;
class batGive extends CI_Controller {
public function index() {
$result = DB::select(‘exabatTB;’, [’*’], ‘order by dateexa’); // 查询多条
if (empty($result)){
$this->json([
‘code’ => 1,
‘data’ => [ ]
]);
}else{
$this->json([
‘code’ => 0,
‘data’ => [
‘msg’ => $result
]
]);
}
}
}
腾讯云上传之后,执行这个:
qcloud.request({
that:this,
url: `${config.service.host}/weapp/batGive`,
data: formData,
method: “POST”,
header: {
“Content-Type”: “application/x-www-form-urlencoded”
},
login: false,
success(result) {
util.showSuccess(‘请求成功完成’)
that.dspTable(result.data)
},
fail(error) {
util.showModel(‘请求失败’, error);
}
})
为什么提示错误:POST https://nqril3hj.qcloud.la/weapp/batGive 404 (Not Found) appservice:1008