edit修改相关内容
This commit is contained in:
parent
21160e9e3f
commit
7969014ce7
@ -61,7 +61,7 @@ class WechatController extends Controller
|
||||
$signature = $_GET["signature"];
|
||||
$timestamp = $_GET["timestamp"];
|
||||
$nonce = $_GET["nonce"];
|
||||
$token = "3dxh";
|
||||
$token = "3u57ghc5dwh4pc6vsch4xqnqw5egg7cu";
|
||||
$tmpArr = array($token, $timestamp, $nonce);
|
||||
sort($tmpArr, SORT_STRING);
|
||||
$tmpStr = implode( $tmpArr );
|
||||
@ -98,6 +98,25 @@ class WechatController extends Controller
|
||||
if ($event=='subscribe') { // 关注事件
|
||||
// $this->_doSubscribe($request_xml);
|
||||
}elseif ($event=='CLICK') {//菜单点击事件
|
||||
$id = $request_xml->EventKey;
|
||||
if($id == 'diamond_cards'){
|
||||
$wechat_mp = $this->getWechat();
|
||||
// 推送客服消息
|
||||
$url = "https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token=".$wechat_mp->getAccessToken();
|
||||
try{
|
||||
$to_user = reset($request_xml->FromUserName);
|
||||
}catch (\Exception $e){
|
||||
$to_user = $request_xml->FromUserName;
|
||||
}
|
||||
$arr = [
|
||||
'touser' => $to_user,
|
||||
'msgtype' => 'wxcard',
|
||||
'wxcard' => [
|
||||
'card_id' => 'pVD1TwKeveIHet_0h-SnfL2VYGjU',
|
||||
],
|
||||
];
|
||||
$res = $wechat_mp->curl->post($url,json_encode($arr,JSON_UNESCAPED_UNICODE));
|
||||
}
|
||||
// $this->_doClick($request_xml);
|
||||
}elseif ($event=='VIEW') {//连接跳转事件
|
||||
// $this->_doView($request_xml);
|
||||
@ -115,53 +134,26 @@ class WechatController extends Controller
|
||||
'id' => $find->store_id,
|
||||
]);
|
||||
$wechat_mp = "";
|
||||
$wechat_app = WechatApp::findOne([
|
||||
'cx_mch_id' => 0,
|
||||
'is_delete' => 0
|
||||
]);
|
||||
if($wechat_app){
|
||||
if (!is_dir(\Yii::$app->runtimePath . '/pem')) {
|
||||
mkdir(\Yii::$app->runtimePath . '/pem');
|
||||
file_put_contents(\Yii::$app->runtimePath . '/pem/index.html', '');
|
||||
}
|
||||
$cert_pem_file = null;
|
||||
if ($wechat_app->cert_pem) {
|
||||
$cert_pem_file = \Yii::$app->runtimePath . '/pem/' . md5($wechat_app->cert_pem);
|
||||
if (!file_exists($cert_pem_file))
|
||||
file_put_contents($cert_pem_file, $wechat_app->cert_pem);
|
||||
}
|
||||
$key_pem_file = null;
|
||||
if ($wechat_app->key_pem) {
|
||||
$key_pem_file = \Yii::$app->runtimePath . '/pem/' . md5($wechat_app->key_pem);
|
||||
if (!file_exists($key_pem_file))
|
||||
file_put_contents($key_pem_file, $wechat_app->key_pem);
|
||||
}
|
||||
$wechat_mp = new Wechat([
|
||||
'appId' => $wechat_app->app_id,
|
||||
'appSecret' => $wechat_app->app_secret,
|
||||
'mchId' => $wechat_app->mch_id,
|
||||
'apiKey' => $wechat_app->key,
|
||||
'certPem' => $cert_pem_file,
|
||||
'keyPem' => $key_pem_file,
|
||||
]);
|
||||
$wechat_mp = $this->getWechat();
|
||||
// 推送客服消息
|
||||
$url = "https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token=".$wechat_mp->getAccessToken();
|
||||
$to_url = urlencode(SiteHelper::getCustomiseOptionByKey("siteDomain", "hump")."/site");
|
||||
$state = $find->id."_".$find->store_id."_".time();
|
||||
$res_url = "https://open.weixin.qq.com/connect/oauth2/authorize?appid={$wechat_app->app_id}&redirect_uri={$to_url}&response_type=code&scope=snsapi_userinfo&state={$state}#wechat_redirect";
|
||||
$res_url = "https://open.weixin.qq.com/connect/oauth2/authorize?appid={$wechat_mp->appId}&redirect_uri={$to_url}&response_type=code&scope=snsapi_userinfo&state={$state}#wechat_redirect";
|
||||
try{
|
||||
$to_user = reset($request_xml->FromUserName);
|
||||
}catch (\Exception $e){
|
||||
$to_user = $request_xml->FromUserName;
|
||||
}
|
||||
$site_name = SiteHelper::getCustomiseOptionByKey("siteName", "hump");
|
||||
$arr = [
|
||||
'touser' => $to_user,
|
||||
'msgtype' => 'news',
|
||||
'news' => [
|
||||
'articles' => [
|
||||
[
|
||||
'title' => '欢迎访问'.SiteHelper::getCustomiseOptionByKey("siteName", "hump"),
|
||||
'description' => "请点击访问链接,配合工作人员完成步骤 - ".$find_store->name,
|
||||
'title' => "欢迎您使用{$site_name}足部检测仪!",
|
||||
'description' => "当前门店:".$find_store->name."\n当前设备编号:{$find->dev_number}",
|
||||
'url' => $res_url,
|
||||
'picurl' => SiteHelper::getCustomiseOptionByKey("siteDomain", "hump").'/upload/0/1/upload/image/2023/1026/1698312821606159.jpg',
|
||||
]
|
||||
@ -171,7 +163,6 @@ class WechatController extends Controller
|
||||
$res = $wechat_mp->curl->post($url,json_encode($arr,JSON_UNESCAPED_UNICODE));
|
||||
\Yii::info(json_encode($res),'wxpay');
|
||||
\Yii::info(json_encode($arr).$request_xml->FromUserName,'wxpay');
|
||||
}
|
||||
$text = "欢迎来到英舒迪公众号";
|
||||
$msg = sprintf($this->_msg_template['text'], $request_xml->FromUserName, $request_xml->ToUserName, time(),$text);
|
||||
$msg = "";
|
||||
@ -205,6 +196,42 @@ class WechatController extends Controller
|
||||
return $msg;
|
||||
}
|
||||
|
||||
public function getWechat(){
|
||||
$wechat_app = WechatApp::findOne([
|
||||
'cx_mch_id' => 0,
|
||||
'is_delete' => 0
|
||||
]);
|
||||
if($wechat_app){
|
||||
if (!is_dir(\Yii::$app->runtimePath . '/pem')) {
|
||||
mkdir(\Yii::$app->runtimePath . '/pem');
|
||||
file_put_contents(\Yii::$app->runtimePath . '/pem/index.html', '');
|
||||
}
|
||||
$cert_pem_file = null;
|
||||
if ($wechat_app->cert_pem) {
|
||||
$cert_pem_file = \Yii::$app->runtimePath . '/pem/' . md5($wechat_app->cert_pem);
|
||||
if (!file_exists($cert_pem_file))
|
||||
file_put_contents($cert_pem_file, $wechat_app->cert_pem);
|
||||
}
|
||||
$key_pem_file = null;
|
||||
if ($wechat_app->key_pem) {
|
||||
$key_pem_file = \Yii::$app->runtimePath . '/pem/' . md5($wechat_app->key_pem);
|
||||
if (!file_exists($key_pem_file))
|
||||
file_put_contents($key_pem_file, $wechat_app->key_pem);
|
||||
}
|
||||
$wechat_mp = new Wechat([
|
||||
'appId' => $wechat_app->app_id,
|
||||
'appSecret' => $wechat_app->app_secret,
|
||||
'mchId' => $wechat_app->mch_id,
|
||||
'apiKey' => $wechat_app->key,
|
||||
'certPem' => $cert_pem_file,
|
||||
'keyPem' => $key_pem_file,
|
||||
]);
|
||||
return $wechat_mp;
|
||||
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @ 更新菜单
|
||||
*/
|
||||
@ -246,8 +273,35 @@ class WechatController extends Controller
|
||||
'button' => [
|
||||
[
|
||||
'type' => 'view',
|
||||
'name' => '查看报告',
|
||||
'url' => $res_url,
|
||||
'name' => '官网',
|
||||
'url' => "https://benson688.com/",
|
||||
],
|
||||
[
|
||||
'type' => 'miniprogram',
|
||||
'name' => '官网',
|
||||
'url' => "https://benson688.com/",
|
||||
"appid"=>"wx7d887db4a4701186",
|
||||
"pagepath"=>"pages/index/index",
|
||||
],
|
||||
[
|
||||
"name" => "菜单",
|
||||
"sub_button" => [
|
||||
[
|
||||
'type' => 'view',
|
||||
'name' => '英舒迪AI聊天工具',
|
||||
'url' => "https://ai.benson688.com/h5/?i5hy",
|
||||
],
|
||||
[
|
||||
'type' => 'view',
|
||||
'name' => '携厦大研发保健鞋',
|
||||
'url' => "https://i.benson688.com/h5/1.html#/activity/luntan/index",
|
||||
],
|
||||
[
|
||||
'type' => 'click',
|
||||
'name' => '英舒迪钻石尊享卡',
|
||||
"key" => "diamond_cards",
|
||||
],
|
||||
],
|
||||
]
|
||||
],
|
||||
];
|
||||
|
||||
BIN
cxfoot.zip
BIN
cxfoot.zip
Binary file not shown.
@ -536,7 +536,7 @@ class Menu
|
||||
'route' => 'admin/page/about-us',
|
||||
],
|
||||
[
|
||||
'name' => '微信小程序',
|
||||
'name' => '微信配置',
|
||||
'is_menu' => true,
|
||||
'is_show' => true,
|
||||
'route' => null,
|
||||
|
||||
@ -51,7 +51,7 @@ class ReportListForm extends AdminModel
|
||||
return $this->getModelError();
|
||||
}
|
||||
|
||||
$where = [];
|
||||
$where = ['o.store_id' => $this->store_id];
|
||||
if (!empty($this->times)) {
|
||||
$explode = explode(' - ', $this->times);
|
||||
$where = [
|
||||
@ -62,13 +62,12 @@ class ReportListForm extends AdminModel
|
||||
}
|
||||
|
||||
$query = Report::find()->alias('o')
|
||||
->select('o.id,o.model_number,o.initial_path,o.final_path,o.pdf_path,o.step,u.real_name,u.mobile_phone,s.name as store_name,o.created_at')
|
||||
->select('o.id,o.model_number,o.initial_path,o.final_path,o.pdf_path,o.step,u.real_name,u.mobile_phone,s.name as store_name,o.created_at,o.json')
|
||||
->leftJoin(['u' => User::tableName()], 'o.user_id=u.id')
|
||||
->leftJoin(['s' => Store::tableName()], 'o.store_id=s.id')
|
||||
->where([
|
||||
|
||||
])->andWhere($where)
|
||||
->andFilterWhere(['o.store_id' => $this->store_id])
|
||||
->andFilterWhere([
|
||||
'OR',
|
||||
['like', 'u.mobile_phone', $this->keywords],
|
||||
@ -80,13 +79,39 @@ class ReportListForm extends AdminModel
|
||||
$count = $query->count();
|
||||
$pagination = new Pagination(['totalCount' => $count, 'pageSize' => $this->limit]);
|
||||
$list = $query->offset($pagination->offset)->limit($pagination->limit)->orderBy(['o.created_at' => SORT_DESC])->asArray()->all();
|
||||
|
||||
$storeUser = StoreUser::findOne(['user_id' => $this->user_id]);
|
||||
|
||||
$gender_str = [
|
||||
0 => '未知',
|
||||
1 => '男',
|
||||
2 => '女',
|
||||
];
|
||||
$status = [
|
||||
0 => '待上传',
|
||||
2 => '待生成报告',
|
||||
3 => '报告已生成',
|
||||
];
|
||||
foreach ($list as $index => $item) {
|
||||
if(!empty($item['json'])){
|
||||
$item['json'] = json_decode($item['json'],true);
|
||||
}
|
||||
if(empty($item['json'])){
|
||||
$item['json'] = json_decode('{"nickname":"","gender":0,"age":null,"height":null,"weight":null}',true);
|
||||
}
|
||||
|
||||
$item['json']['gender_str'] = $gender_str[$item['json']['gender']]??'未知';
|
||||
$item['user_type'] = $storeUser->user_type;
|
||||
foreach ($item['json'] as $k=>$v){
|
||||
$item["json_".$k] = $v;
|
||||
}
|
||||
|
||||
$item['created_at_cn'] = date("Y-m-d H:i", $item['created_at']);
|
||||
|
||||
$item['initial_path_ext'] = "";
|
||||
$item['initial_name'] = '';
|
||||
if (!empty($item['initial_path'])) {
|
||||
$item['initial_name'] = $item['model_number'] . '初始报告';
|
||||
$item['initial_name'] = $item['model_number'] . '初始模型';
|
||||
$explode = explode('.', $item['initial_path']);
|
||||
$item['initial_path_ext'] = end($explode);
|
||||
}
|
||||
@ -94,7 +119,7 @@ class ReportListForm extends AdminModel
|
||||
$item['final_path_ext'] = '';
|
||||
$item['final_name'] = '';
|
||||
if (!empty($item['final_path'])) {
|
||||
$item['final_name'] = $item['model_number'] . '最终报告';
|
||||
$item['final_name'] = $item['model_number'] . '最终模型';
|
||||
$explode = explode('.', $item['final_path']);
|
||||
$item['final_path_ext'] = end($explode);
|
||||
}
|
||||
@ -108,6 +133,8 @@ class ReportListForm extends AdminModel
|
||||
$item['pdf_path_ext'] = end($explode);
|
||||
}
|
||||
|
||||
$item['status'] = $status[$item['step']]??'';
|
||||
|
||||
|
||||
$list[$index] = $item;
|
||||
}
|
||||
|
||||
@ -39,7 +39,7 @@ class WechatAppForm extends AdminModel
|
||||
{
|
||||
return [
|
||||
[['name','app_id', 'app_secret', 'mch_id', 'key', 'cert_pem', 'key_pem','key_three'], 'trim'],
|
||||
[['name','app_id', 'app_secret', 'mch_id', 'key', 'model', 'cx_mch_id','key_three'], 'required'],
|
||||
// [['name','app_id', 'app_secret', 'mch_id', 'key', 'model', 'cx_mch_id','key_three'], 'required'],
|
||||
[['cx_mch_id'], 'integer'],
|
||||
];
|
||||
}
|
||||
|
||||
@ -29,7 +29,7 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
<div class="layui-card-header layuiadmin-card-header-auto">
|
||||
<div class="layui-form-item">
|
||||
<div class="layui-inline">
|
||||
<!--<a class=" layui-btn" href="<?= \Yii::$app->urlManager->createUrl(["admin/feedback/edit"]) ?>">添加反馈</a>-->
|
||||
<!--<a class=" layui-btn" href="<?= \Yii::$app->urlManager->createUrl(["store/feedback/edit"]) ?>">添加反馈</a>-->
|
||||
</div>
|
||||
<div class="layui-inline layui-float-right layui-form">
|
||||
|
||||
@ -76,9 +76,24 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
<!-- <button class="layui-btn layui-btn-sm" lay-event="batch_qrcode">打包二维码</button> -->
|
||||
</div>
|
||||
</script>
|
||||
|
||||
<!--行操作列模板-->
|
||||
<script type="text/html" id="rowBarTpl">
|
||||
<!-- <button class="layui-btn layui-btn-xs layui-btn-normal" lay-event="find_qrcode">二维码</button> -->
|
||||
<!--{{# if(d.step == 0){ }}
|
||||
<button class="layui-btn layui-btn-xs layui-btn-normal" lay-event="edit">模型上传</button>
|
||||
{{# }else{ }}
|
||||
<button class="layui-btn layui-btn-xs layui-btn-normal" lay-event="edit">修改模型上传</button>
|
||||
{{# } }}-->
|
||||
{{# if(d.step == 3){ }}
|
||||
<a href="https://y.inshudi.com/#/dataReporting?id={{d.id}}&time={{new Date().getTime()}}" target="_blank" class="layui-btn layui-btn-xs layui-btn-normal">查看报告</a>
|
||||
{{# } }}
|
||||
<!--{{# if(d.user_type == 1){ }}
|
||||
<button class="layui-btn layui-btn-xs layui-btn-normal" lay-event="edit">初始模型上传</button>
|
||||
{{# } }}
|
||||
|
||||
{{# if(d.user_type == 3){ }}
|
||||
<button class="layui-btn layui-btn-xs layui-btn-normal" lay-event="edit">最终模型上传</button>
|
||||
{{# } }}
|
||||
|
||||
|
||||
{{# if(d.initial_path){ }}
|
||||
@ -101,7 +116,7 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
download="{{d.pdf_name}}.{{d.pdf_path_ext}}">
|
||||
<button class="layui-btn layui-btn-xs layui-btn-danger" lay-event="">下载PDF报告</button>
|
||||
</a>
|
||||
{{# } }}
|
||||
{{# } }}-->
|
||||
<!-- <button class="layui-btn layui-btn-xs" lay-event="edit">编辑</button>-->
|
||||
<!-- <button class="layui-btn layui-btn-xs layui-btn-danger" lay-event="delete">删除</button>-->
|
||||
</script>
|
||||
@ -143,7 +158,7 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
//重新加载表格数据
|
||||
function reload_table_data(conf) {
|
||||
table.reload('dtable', {
|
||||
url: '<?=\Yii::$app->urlManager->createUrl(['admin/report/index'])?>'
|
||||
url: '<?=\Yii::$app->urlManager->createUrl(['store/report/index'])?>'
|
||||
, page: true
|
||||
, where: conf
|
||||
});
|
||||
@ -163,17 +178,22 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
, {field: 'id', title: 'ID', width: 80}
|
||||
, {field: 'real_name', title: '姓名', width: 100}
|
||||
, {field: 'mobile_phone', title: '电话', width: 120}
|
||||
, {field: "json_gender_str", title: '性别', width: 80}
|
||||
, {field: "json_age", title: '年龄', width: 80}
|
||||
, {field: "json_height", title: '身高', width: 80}
|
||||
, {field: "json_weight", title: '体重', width: 80}
|
||||
, {field: 'store_name', title: '门店名称'}
|
||||
, {field: 'model_number', title: '报告编号'}
|
||||
, {field: 'initial_name', title: '初始模型'}
|
||||
, {field: 'final_name', title: '最终模型'}
|
||||
, {field: 'pdf_name', title: 'PDF报告'}
|
||||
, {field: 'model_number', title: '设备编号'}
|
||||
, {field: 'status', title: '状态'}
|
||||
// , {field: 'initial_name', title: '初始模型'}
|
||||
// , {field: 'final_name', title: '最终模型'}
|
||||
// , {field: 'pdf_name', title: 'PDF报告'}
|
||||
// , {field: 'status', title: '状态', templet: '#statusTpl', width: 80}
|
||||
, {field: 'created_at_cn', title: '创建时间', width: 150}
|
||||
, {title: '操作', fixed: 'right', toolbar: '#rowBarTpl', width: 400}
|
||||
]
|
||||
]
|
||||
, url: '<?=\Yii::$app->urlManager->createUrl(['admin/report/index'])?>'
|
||||
, url: '<?=\Yii::$app->urlManager->createUrl(['store/report/index'])?>'
|
||||
, page: true
|
||||
//指向自定义工具栏模板选择器
|
||||
, toolbar: '#toolBarTpl'
|
||||
@ -211,23 +231,23 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
ids.push(id);
|
||||
|
||||
if (lay_event == "delete") {
|
||||
confirm_url = "<?=\Yii::$app->urlManager->createUrl(['admin/store/delete'])?>";
|
||||
confirm_url = "<?=\Yii::$app->urlManager->createUrl(['store/store/delete'])?>";
|
||||
confirm_tip = "确定删除此门店吗";
|
||||
}
|
||||
if (lay_event == "status_yes") {
|
||||
confirm_url = "<?=\Yii::$app->urlManager->createUrl(['admin/store/status-yes'])?>";
|
||||
confirm_url = "<?=\Yii::$app->urlManager->createUrl(['store/store/status-yes'])?>";
|
||||
confirm_tip = "确定此门店变更为营业吗?";
|
||||
}
|
||||
if (lay_event == "status_no") {
|
||||
confirm_url = "<?=\Yii::$app->urlManager->createUrl(['admin/store/status-no'])?>";
|
||||
confirm_url = "<?=\Yii::$app->urlManager->createUrl(['store/store/status-no'])?>";
|
||||
confirm_tip = "确定此门店变更为停业吗?";
|
||||
}
|
||||
if (lay_event == "find_qrcode") {
|
||||
confirm_url = "<?=\Yii::$app->urlManager->createUrl(['admin/store/find-qrcode'])?>";
|
||||
confirm_tip = "确定查看此门店二维码吗?";
|
||||
}
|
||||
//if (lay_event == "find_qrcode") {
|
||||
// confirm_url = "<?//=\Yii::$app->urlManager->createUrl(['store/report/edit'])?>//";
|
||||
// confirm_tip = "确定上传报告吗?";
|
||||
//}
|
||||
if (lay_event == 'edit') {
|
||||
confirm_url = "<?=\Yii::$app->urlManager->createUrl(['admin/store/edit'])?>" + "?id=" + id;
|
||||
confirm_url = "<?=\Yii::$app->urlManager->createUrl(['store/report/edit'])?>" + "?id=" + id;
|
||||
location.href = confirm_url;
|
||||
return;
|
||||
}
|
||||
@ -301,7 +321,7 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
ids.push(check_status.data[index]['id']);
|
||||
});
|
||||
if (lay_event == 'batch_qrcode') {
|
||||
confirm_url = "<?=\Yii::$app->urlManager->createUrl(['admin/store/batch-qrcode'])?>";
|
||||
confirm_url = "<?=\Yii::$app->urlManager->createUrl(['store/store/batch-qrcode'])?>";
|
||||
location.href = confirm_url;
|
||||
return;
|
||||
}
|
||||
@ -312,16 +332,16 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
var confirm_url = null;
|
||||
var confirm_tip = null;
|
||||
if (lay_event == 'batch_delete') {
|
||||
confirm_url = "<?=\Yii::$app->urlManager->createUrl(['admin/store/delete'])?>";
|
||||
confirm_url = "<?=\Yii::$app->urlManager->createUrl(['store/store/delete'])?>";
|
||||
confirm_tip = "确定将选中门店删除吗";
|
||||
}
|
||||
|
||||
if (lay_event == 'batch_status_yes') {
|
||||
confirm_url = "<?=\Yii::$app->urlManager->createUrl(['admin/store/status-yes'])?>";
|
||||
confirm_url = "<?=\Yii::$app->urlManager->createUrl(['store/store/status-yes'])?>";
|
||||
confirm_tip = "确定将选中门店变更为营业吗";
|
||||
}
|
||||
if (lay_event == 'batch_status_no') {
|
||||
confirm_url = "<?=\Yii::$app->urlManager->createUrl(['admin/store/status-no'])?>";
|
||||
confirm_url = "<?=\Yii::$app->urlManager->createUrl(['store/store/status-no'])?>";
|
||||
confirm_tip = "确定将选中门店变更为停业吗";
|
||||
}
|
||||
|
||||
|
||||
@ -18,30 +18,30 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
<div class="layui-col-md5">
|
||||
<div class="layui-form">
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">微信小程序名称</label>
|
||||
<label class="layui-form-label">微信公众号名称</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="name" lay-verify="required" placeholder="请输入微信小程序名称" autocomplete="off" class="layui-input" value="<?=$model->name?>">
|
||||
<input type="text" name="name" lay-verify="required" placeholder="请输入微信公众号名称" autocomplete="off" class="layui-input" value="<?=$model->name?>">
|
||||
</div>
|
||||
<div class="layui-form-mid layui-word-aux"></div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">微信小程序AppId</label>
|
||||
<label class="layui-form-label">微信公众号AppId</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="app_id" lay-verify="required" placeholder="请输入微信小程序AppId" autocomplete="off" class="layui-input" value="<?=$model->app_id?>">
|
||||
<input type="text" name="app_id" lay-verify="required" placeholder="请输入微信公众号AppId" autocomplete="off" class="layui-input" value="<?=$model->app_id?>">
|
||||
</div>
|
||||
<div class="layui-form-mid layui-word-aux"></div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">微信小程序AppSecret</label>
|
||||
<label class="layui-form-label">微信公众号AppSecret</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="app_secret" lay-verify="required" placeholder="请输入微信小程序AppSecret" autocomplete="off" class="layui-input" value="<?=$model->app_secret?>">
|
||||
<input type="text" name="app_secret" lay-verify="required" placeholder="请输入微信公众号AppSecret" autocomplete="off" class="layui-input" value="<?=$model->app_secret?>">
|
||||
</div>
|
||||
<div class="layui-form-mid layui-word-aux"></div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<!--<div class="layui-form-item">
|
||||
<label class="layui-form-label">微信支付商户号</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="mch_id" lay-verify="required" placeholder="请输入微信支付商户号" autocomplete="off" class="layui-input" value="<?=$model->mch_id?>">
|
||||
<input type="text" name="mch_id" lay-verify="required" placeholder="请输入微信支付商户号" autocomplete="off" class="layui-input" value="<?php /*=$model->mch_id*/?>">
|
||||
</div>
|
||||
<div class="layui-form-mid layui-word-aux"></div>
|
||||
</div>
|
||||
@ -49,7 +49,7 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
<label class="layui-form-label">微信支付Apiv2密钥</label>
|
||||
<div class="layui-input-block">
|
||||
<div class="input-hide">
|
||||
<input type="text" name="key" lay-verify="required" placeholder="请输入微信支付Apiv2密钥" autocomplete="off" class="layui-input" value="<?=$model->key?>">
|
||||
<input type="text" name="key" lay-verify="required" placeholder="请输入微信支付Apiv2密钥" autocomplete="off" class="layui-input" value="<?php /*=$model->key*/?>">
|
||||
<div class="tip-block">已隐藏内容,点击查看或编辑</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -59,7 +59,7 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
<label class="layui-form-label">微信支付Apiv3密钥</label>
|
||||
<div class="layui-input-block">
|
||||
<div class="input-hide">
|
||||
<input type="text" name="key_three" lay-verify="required" placeholder="请输入微信支付Apiv3密钥" autocomplete="off" class="layui-input" value="<?=$model->key_three?>">
|
||||
<input type="text" name="key_three" lay-verify="required" placeholder="请输入微信支付Apiv3密钥" autocomplete="off" class="layui-input" value="<?php /*=$model->key_three*/?>">
|
||||
<div class="tip-block">已隐藏内容,点击查看或编辑</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -69,7 +69,7 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
<label class="layui-form-label">微信支付apiclient_cert.pem</label>
|
||||
<div class="layui-input-block">
|
||||
<div class="input-hide">
|
||||
<textarea name="cert_pem" placeholder="" class="layui-textarea"><?= $model->cert_pem ?></textarea>
|
||||
<textarea name="cert_pem" placeholder="" class="layui-textarea"><?php /*= $model->cert_pem */?></textarea>
|
||||
<div class="tip-block">已隐藏内容,点击查看或编辑</div>
|
||||
</div>
|
||||
<div class="layui-form-mid layui-word-aux">使用文本编辑器打开apiclient_cert.pem文件,将文件的全部内容复制进来</div>
|
||||
@ -79,12 +79,12 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
<label class="layui-form-label">微信支付apiclient_key.pem</label>
|
||||
<div class="layui-input-block">
|
||||
<div class="input-hide">
|
||||
<textarea name="key_pem" placeholder="" class="layui-textarea"><?= $model->key_pem ?></textarea>
|
||||
<textarea name="key_pem" placeholder="" class="layui-textarea"><?php /*= $model->key_pem */?></textarea>
|
||||
<div class="tip-block">已隐藏内容,点击查看或编辑</div>
|
||||
</div>
|
||||
<div class="layui-form-mid layui-word-aux">使用文本编辑器打开apiclient_key.pem文件,将文件的全部内容复制进来</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>-->
|
||||
|
||||
<div class="layui-form-item">
|
||||
<div class="layui-input-block">
|
||||
|
||||
@ -80,7 +80,7 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
<!--行操作列模板-->
|
||||
<script type="text/html" id="rowBarTpl">
|
||||
|
||||
<button class="layui-btn layui-btn-xs layui-btn-normal" lay-event="qrcode">查看二维码</button>
|
||||
<!-- <button class="layui-btn layui-btn-xs layui-btn-normal" lay-event="qrcode">查看二维码</button>-->
|
||||
<button class="layui-btn layui-btn-xs layui-btn-normal" lay-event="wechatqrcode">查看公众号二维码</button>
|
||||
<button class="layui-btn layui-btn-xs layui-btn-normal" lay-event="edit">编辑</button>
|
||||
|
||||
|
||||
@ -85,7 +85,7 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
<button class="layui-btn layui-btn-xs layui-btn-normal" lay-event="edit">修改模型上传</button>
|
||||
{{# } }}
|
||||
{{# if(d.step == 3){ }}
|
||||
<a href="https://app.3dxh.h5.dev.1nww.com/#/dataReporting?id={{d.id}}&time={{new Date().getTime()}}" target="_blank" class="layui-btn layui-btn-xs layui-btn-normal">查看报告</a>
|
||||
<a href="https://y.inshudi.com/#/dataReporting?id={{d.id}}&time={{new Date().getTime()}}" target="_blank" class="layui-btn layui-btn-xs layui-btn-normal">查看报告</a>
|
||||
{{# } }}
|
||||
<!--{{# if(d.user_type == 1){ }}
|
||||
<button class="layui-btn layui-btn-xs layui-btn-normal" lay-event="edit">初始模型上传</button>
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
71
runtime/debug/655f0c211430e.data
Normal file
71
runtime/debug/655f0c211430e.data
Normal file
File diff suppressed because one or more lines are too long
141
runtime/debug/655f0c2134a2f.data
Normal file
141
runtime/debug/655f0c2134a2f.data
Normal file
File diff suppressed because one or more lines are too long
12
runtime/debug/655f0c2163f40.data
Normal file
12
runtime/debug/655f0c2163f40.data
Normal file
File diff suppressed because one or more lines are too long
71
runtime/debug/655f0c21a4f7e.data
Normal file
71
runtime/debug/655f0c21a4f7e.data
Normal file
File diff suppressed because one or more lines are too long
12
runtime/debug/655f0c21b2727.data
Normal file
12
runtime/debug/655f0c21b2727.data
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -69582,3 +69582,235 @@ $_SERVER = [
|
||||
'REQUEST_TIME_FLOAT' => 1700641330.3308
|
||||
'REQUEST_TIME' => 1700641330
|
||||
]
|
||||
2023-11-23 16:24:01 [127.0.0.1][-][ebecjvqadu0oups836nheeh5gi][error][yii\web\HttpException:404] yii\base\InvalidRouteException: Unable to resolve the request "upload/0/1/upload/image/2023/1101/1698828522526323.jpg". in D:\phpstudy_pro_bak\WWW\cxfoot\vendor\yiisoft\yii2\base\Module.php:561
|
||||
Stack trace:
|
||||
#0 D:\phpstudy_pro_bak\WWW\cxfoot\vendor\yiisoft\yii2\web\Application.php(103): yii\base\Module->runAction('upload/0/1/uplo...', Array)
|
||||
#1 D:\phpstudy_pro_bak\WWW\cxfoot\vendor\yiisoft\yii2\base\Application.php(384): yii\web\Application->handleRequest(Object(yii\web\Request))
|
||||
#2 D:\phpstudy_pro_bak\WWW\cxfoot\web\index.php(11): yii\base\Application->run()
|
||||
#3 {main}
|
||||
|
||||
Next yii\web\NotFoundHttpException: 椤甸潰鏈<E6BDB0>壘鍒般€<E888AC> in D:\phpstudy_pro_bak\WWW\cxfoot\vendor\yiisoft\yii2\web\Application.php:115
|
||||
Stack trace:
|
||||
#0 D:\phpstudy_pro_bak\WWW\cxfoot\vendor\yiisoft\yii2\base\Application.php(384): yii\web\Application->handleRequest(Object(yii\web\Request))
|
||||
#1 D:\phpstudy_pro_bak\WWW\cxfoot\web\index.php(11): yii\base\Application->run()
|
||||
#2 {main}
|
||||
2023-11-23 16:24:01 [127.0.0.1][-][ebecjvqadu0oups836nheeh5gi][info][application] $_GET = []
|
||||
|
||||
$_POST = []
|
||||
|
||||
$_FILES = []
|
||||
|
||||
$_COOKIE = [
|
||||
'PHPSESSID' => 'ebecjvqadu0oups836nheeh5gi'
|
||||
'_csrf' => 'd1f8c2401c5760a0be0adcbbe73003d235641d2b652901c15ebe437a136273b3a:2:{i:0;s:5:\"_csrf\";i:1;s:32:\"-er2iWAt_-wBR8s20gulw51ncO_BHgw5\";}'
|
||||
]
|
||||
|
||||
$_SESSION = [
|
||||
'__flash' => []
|
||||
]
|
||||
|
||||
$_SERVER = [
|
||||
'ALLUSERSPROFILE' => 'C:\\ProgramData'
|
||||
'APPCODE_VM_OPTIONS' => 'C:\\Users\\Administrator\\Downloads\\jetbra\\jetbra\\vmoptions\\appcode.vmoptions'
|
||||
'APPDATA' => 'C:\\Users\\Administrator\\AppData\\Roaming'
|
||||
'CLION_VM_OPTIONS' => 'C:\\Users\\Administrator\\Downloads\\jetbra\\jetbra\\vmoptions\\clion.vmoptions'
|
||||
'CommonProgramFiles' => 'C:\\Program Files\\Common Files'
|
||||
'CommonProgramFiles(x86)' => 'C:\\Program Files (x86)\\Common Files'
|
||||
'CommonProgramW6432' => 'C:\\Program Files\\Common Files'
|
||||
'COMPUTERNAME' => 'DESKTOP-VQUCCU1'
|
||||
'ComSpec' => 'C:\\Windows\\system32\\cmd.exe'
|
||||
'DATAGRIP_VM_OPTIONS' => 'C:\\Users\\Administrator\\Downloads\\jetbra\\jetbra\\vmoptions\\datagrip.vmoptions'
|
||||
'DATASPELL_VM_OPTIONS' => 'C:\\Users\\Administrator\\Downloads\\jetbra\\jetbra\\vmoptions\\dataspell.vmoptions'
|
||||
'DEVECOSTUDIO_VM_OPTIONS' => 'C:\\Users\\Administrator\\Downloads\\jetbra\\jetbra\\vmoptions\\devecostudio.vmoptions'
|
||||
'DriverData' => 'C:\\Windows\\System32\\Drivers\\DriverData'
|
||||
'GATEWAY_VM_OPTIONS' => 'C:\\Users\\Administrator\\Downloads\\jetbra\\jetbra\\vmoptions\\gateway.vmoptions'
|
||||
'GOLAND_VM_OPTIONS' => 'C:\\Users\\Administrator\\Downloads\\jetbra\\jetbra\\vmoptions\\goland.vmoptions'
|
||||
'HOMEDRIVE' => 'C:'
|
||||
'HOMEPATH' => '\\Users\\Administrator'
|
||||
'IDEA_VM_OPTIONS' => 'C:\\Users\\Administrator\\Downloads\\jetbra\\jetbra\\vmoptions\\idea.vmoptions'
|
||||
'JETBRAINSCLIENT_VM_OPTIONS' => 'C:\\Users\\Administrator\\Downloads\\jetbra\\jetbra\\vmoptions\\jetbrainsclient.vmoptions'
|
||||
'JETBRAINS_CLIENT_VM_OPTIONS' => 'C:\\Users\\Administrator\\Downloads\\jetbra\\jetbra\\vmoptions\\jetbrains_client.vmoptions'
|
||||
'KINECTSDK20_DIR' => 'C:\\Program Files\\Microsoft SDKs\\Kinect\\v2.0_1409\\'
|
||||
'LOCALAPPDATA' => 'C:\\Users\\Administrator\\AppData\\Local'
|
||||
'LOGONSERVER' => '\\\\DESKTOP-VQUCCU1'
|
||||
'NUMBER_OF_PROCESSORS' => '8'
|
||||
'OneDrive' => 'C:\\Users\\Administrator\\OneDrive'
|
||||
'OS' => 'Windows_NT'
|
||||
'Path' => 'C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\Git\\cmd;D:\\phpstudy_pro\\Extensions\\php\\php7.4.3nts;C:\\Program Files\\Redis\\;C:\\Users\\Administrator\\AppData\\Local\\Programs\\Python\\Python310\\;C:\\Users\\Administrator\\AppData\\Local\\Programs\\Python\\Python310\\Scripts;C:\\Pro;ram Files (x86)\\NetSarang\\Xshell 7\\;C:\\Program Files (x86)\\NetSarang\\Xftp 7\\;C:\\Program Files\\TortoiseSVN\\bin;H:\\Microsoft VS Code\\bin;C:\\composer;C:\\Program Files (x86)\\NetSarang\\Xshell 7\\;C:\\Program Files\\nodejs\\;H:\\微信web开发者工具\\dll;D:\\微信web开发者工具\\dll;C:\\Users\\Administrator\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\Administrator\\AppData\\Roaming\\Composer\\vendor\\bin;C:\\Users\\Administrator\\AppData\\Roaming\\npm'
|
||||
'PATHEXT' => '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC'
|
||||
'PHPSTORM_VM_OPTIONS' => 'C:\\Users\\Administrator\\Downloads\\jetbra\\jetbra\\vmoptions\\phpstorm.vmoptions'
|
||||
'PROCESSOR_ARCHITECTURE' => 'AMD64'
|
||||
'PROCESSOR_IDENTIFIER' => 'Intel64 Family 6 Model 60 Stepping 3, GenuineIntel'
|
||||
'PROCESSOR_LEVEL' => '6'
|
||||
'PROCESSOR_REVISION' => '3c03'
|
||||
'ProgramData' => 'C:\\ProgramData'
|
||||
'ProgramFiles' => 'C:\\Program Files'
|
||||
'ProgramFiles(x86)' => 'C:\\Program Files (x86)'
|
||||
'ProgramW6432' => 'C:\\Program Files'
|
||||
'PSModulePath' => 'C:\\Program Files\\WindowsPowerShell\\Modules;C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules'
|
||||
'PUBLIC' => 'C:\\Users\\Public'
|
||||
'PYCHARM_VM_OPTIONS' => 'C:\\Users\\Administrator\\Downloads\\jetbra\\jetbra\\vmoptions\\pycharm.vmoptions'
|
||||
'RIDER_VM_OPTIONS' => 'C:\\Users\\Administrator\\Downloads\\jetbra\\jetbra\\vmoptions\\rider.vmoptions'
|
||||
'RUBYMINE_VM_OPTIONS' => 'C:\\Users\\Administrator\\Downloads\\jetbra\\jetbra\\vmoptions\\rubymine.vmoptions'
|
||||
'STUDIO_VM_OPTIONS' => 'C:\\Users\\Administrator\\Downloads\\jetbra\\jetbra\\vmoptions\\studio.vmoptions'
|
||||
'SystemDrive' => 'C:'
|
||||
'SystemRoot' => 'C:\\Windows'
|
||||
'TEMP' => 'C:\\Users\\Administrator\\AppData\\Local\\Temp'
|
||||
'TMP' => 'C:\\Users\\Administrator\\AppData\\Local\\Temp'
|
||||
'USERDOMAIN' => 'DESKTOP-VQUCCU1'
|
||||
'USERDOMAIN_ROAMINGPROFILE' => 'DESKTOP-VQUCCU1'
|
||||
'USERNAME' => 'Administrator'
|
||||
'USERPROFILE' => 'C:\\Users\\Administrator'
|
||||
'WEBIDE_VM_OPTIONS' => 'C:\\Users\\Administrator\\Downloads\\jetbra\\jetbra\\vmoptions\\webide.vmoptions'
|
||||
'WEBSTORM_VM_OPTIONS' => 'C:\\Users\\Administrator\\Downloads\\jetbra\\jetbra\\vmoptions\\webstorm.vmoptions'
|
||||
'windir' => 'C:\\Windows'
|
||||
'HTTP_COOKIE' => 'PHPSESSID=ebecjvqadu0oups836nheeh5gi; _csrf=d1f8c2401c5760a0be0adcbbe73003d235641d2b652901c15ebe437a136273b3a%3A2%3A%7Bi%3A0%3Bs%3A5%3A%22_csrf%22%3Bi%3A1%3Bs%3A32%3A%22-er2iWAt_-wBR8s20gulw51ncO_BHgw5%22%3B%7D'
|
||||
'HTTP_ACCEPT_LANGUAGE' => 'zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6'
|
||||
'HTTP_ACCEPT_ENCODING' => 'gzip, deflate'
|
||||
'HTTP_REFERER' => 'http://cxfoot.com/admin/passport/login?return_url=http%3A%2F%2Fcxfoot.com%2Fadmin%2Fstore%2Findex'
|
||||
'HTTP_ACCEPT' => 'image/webp,image/apng,image/svg+xml,image/*,*/*;q=0.8'
|
||||
'HTTP_USER_AGENT' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 Edg/117.0.2045.60'
|
||||
'HTTP_CONNECTION' => 'keep-alive'
|
||||
'HTTP_HOST' => 'cxfoot.com'
|
||||
'REDIRECT_STATUS' => '200'
|
||||
'SERVER_NAME' => 'cxfoot.com'
|
||||
'SERVER_PORT' => '80'
|
||||
'SERVER_ADDR' => '127.0.0.1'
|
||||
'REMOTE_PORT' => '65468'
|
||||
'REMOTE_ADDR' => '127.0.0.1'
|
||||
'SERVER_SOFTWARE' => 'nginx/1.15.11'
|
||||
'GATEWAY_INTERFACE' => 'CGI/1.1'
|
||||
'REQUEST_SCHEME' => 'http'
|
||||
'SERVER_PROTOCOL' => 'HTTP/1.1'
|
||||
'DOCUMENT_ROOT' => 'D:/phpstudy_pro_bak/WWW/cxfoot/web'
|
||||
'DOCUMENT_URI' => '/index.php'
|
||||
'REQUEST_URI' => '/upload/0/1/upload/image/2023/1101/1698828522526323.jpg'
|
||||
'SCRIPT_NAME' => '/index.php'
|
||||
'CONTENT_LENGTH' => ''
|
||||
'CONTENT_TYPE' => ''
|
||||
'REQUEST_METHOD' => 'GET'
|
||||
'QUERY_STRING' => ''
|
||||
'PATH_TRANSLATED' => 'D:/phpstudy_pro_bak/WWW/cxfoot/web'
|
||||
'PATH_INFO' => ''
|
||||
'SCRIPT_FILENAME' => 'D:/phpstudy_pro_bak/WWW/cxfoot/web/index.php'
|
||||
'FCGI_ROLE' => 'RESPONDER'
|
||||
'PHP_SELF' => '/index.php'
|
||||
'REQUEST_TIME_FLOAT' => 1700727841.3433
|
||||
'REQUEST_TIME' => 1700727841
|
||||
]
|
||||
2023-11-23 16:24:01 [127.0.0.1][-][ebecjvqadu0oups836nheeh5gi][error][yii\web\HttpException:404] yii\base\InvalidRouteException: Unable to resolve the request "upload/0/1/upload/image/2023/1101/1698828515356348.jpg". in D:\phpstudy_pro_bak\WWW\cxfoot\vendor\yiisoft\yii2\base\Module.php:561
|
||||
Stack trace:
|
||||
#0 D:\phpstudy_pro_bak\WWW\cxfoot\vendor\yiisoft\yii2\web\Application.php(103): yii\base\Module->runAction('upload/0/1/uplo...', Array)
|
||||
#1 D:\phpstudy_pro_bak\WWW\cxfoot\vendor\yiisoft\yii2\base\Application.php(384): yii\web\Application->handleRequest(Object(yii\web\Request))
|
||||
#2 D:\phpstudy_pro_bak\WWW\cxfoot\web\index.php(11): yii\base\Application->run()
|
||||
#3 {main}
|
||||
|
||||
Next yii\web\NotFoundHttpException: 椤甸潰鏈<E6BDB0>壘鍒般€<E888AC> in D:\phpstudy_pro_bak\WWW\cxfoot\vendor\yiisoft\yii2\web\Application.php:115
|
||||
Stack trace:
|
||||
#0 D:\phpstudy_pro_bak\WWW\cxfoot\vendor\yiisoft\yii2\base\Application.php(384): yii\web\Application->handleRequest(Object(yii\web\Request))
|
||||
#1 D:\phpstudy_pro_bak\WWW\cxfoot\web\index.php(11): yii\base\Application->run()
|
||||
#2 {main}
|
||||
2023-11-23 16:24:01 [127.0.0.1][-][ebecjvqadu0oups836nheeh5gi][info][application] $_GET = []
|
||||
|
||||
$_POST = []
|
||||
|
||||
$_FILES = []
|
||||
|
||||
$_COOKIE = [
|
||||
'PHPSESSID' => 'ebecjvqadu0oups836nheeh5gi'
|
||||
'_csrf' => 'd1f8c2401c5760a0be0adcbbe73003d235641d2b652901c15ebe437a136273b3a:2:{i:0;s:5:\"_csrf\";i:1;s:32:\"-er2iWAt_-wBR8s20gulw51ncO_BHgw5\";}'
|
||||
]
|
||||
|
||||
$_SESSION = [
|
||||
'__flash' => []
|
||||
]
|
||||
|
||||
$_SERVER = [
|
||||
'ALLUSERSPROFILE' => 'C:\\ProgramData'
|
||||
'APPCODE_VM_OPTIONS' => 'C:\\Users\\Administrator\\Downloads\\jetbra\\jetbra\\vmoptions\\appcode.vmoptions'
|
||||
'APPDATA' => 'C:\\Users\\Administrator\\AppData\\Roaming'
|
||||
'CLION_VM_OPTIONS' => 'C:\\Users\\Administrator\\Downloads\\jetbra\\jetbra\\vmoptions\\clion.vmoptions'
|
||||
'CommonProgramFiles' => 'C:\\Program Files\\Common Files'
|
||||
'CommonProgramFiles(x86)' => 'C:\\Program Files (x86)\\Common Files'
|
||||
'CommonProgramW6432' => 'C:\\Program Files\\Common Files'
|
||||
'COMPUTERNAME' => 'DESKTOP-VQUCCU1'
|
||||
'ComSpec' => 'C:\\Windows\\system32\\cmd.exe'
|
||||
'DATAGRIP_VM_OPTIONS' => 'C:\\Users\\Administrator\\Downloads\\jetbra\\jetbra\\vmoptions\\datagrip.vmoptions'
|
||||
'DATASPELL_VM_OPTIONS' => 'C:\\Users\\Administrator\\Downloads\\jetbra\\jetbra\\vmoptions\\dataspell.vmoptions'
|
||||
'DEVECOSTUDIO_VM_OPTIONS' => 'C:\\Users\\Administrator\\Downloads\\jetbra\\jetbra\\vmoptions\\devecostudio.vmoptions'
|
||||
'DriverData' => 'C:\\Windows\\System32\\Drivers\\DriverData'
|
||||
'GATEWAY_VM_OPTIONS' => 'C:\\Users\\Administrator\\Downloads\\jetbra\\jetbra\\vmoptions\\gateway.vmoptions'
|
||||
'GOLAND_VM_OPTIONS' => 'C:\\Users\\Administrator\\Downloads\\jetbra\\jetbra\\vmoptions\\goland.vmoptions'
|
||||
'HOMEDRIVE' => 'C:'
|
||||
'HOMEPATH' => '\\Users\\Administrator'
|
||||
'IDEA_VM_OPTIONS' => 'C:\\Users\\Administrator\\Downloads\\jetbra\\jetbra\\vmoptions\\idea.vmoptions'
|
||||
'JETBRAINSCLIENT_VM_OPTIONS' => 'C:\\Users\\Administrator\\Downloads\\jetbra\\jetbra\\vmoptions\\jetbrainsclient.vmoptions'
|
||||
'JETBRAINS_CLIENT_VM_OPTIONS' => 'C:\\Users\\Administrator\\Downloads\\jetbra\\jetbra\\vmoptions\\jetbrains_client.vmoptions'
|
||||
'KINECTSDK20_DIR' => 'C:\\Program Files\\Microsoft SDKs\\Kinect\\v2.0_1409\\'
|
||||
'LOCALAPPDATA' => 'C:\\Users\\Administrator\\AppData\\Local'
|
||||
'LOGONSERVER' => '\\\\DESKTOP-VQUCCU1'
|
||||
'NUMBER_OF_PROCESSORS' => '8'
|
||||
'OneDrive' => 'C:\\Users\\Administrator\\OneDrive'
|
||||
'OS' => 'Windows_NT'
|
||||
'Path' => 'C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\Git\\cmd;D:\\phpstudy_pro\\Extensions\\php\\php7.4.3nts;C:\\Program Files\\Redis\\;C:\\Users\\Administrator\\AppData\\Local\\Programs\\Python\\Python310\\;C:\\Users\\Administrator\\AppData\\Local\\Programs\\Python\\Python310\\Scripts;C:\\Pro;ram Files (x86)\\NetSarang\\Xshell 7\\;C:\\Program Files (x86)\\NetSarang\\Xftp 7\\;C:\\Program Files\\TortoiseSVN\\bin;H:\\Microsoft VS Code\\bin;C:\\composer;C:\\Program Files (x86)\\NetSarang\\Xshell 7\\;C:\\Program Files\\nodejs\\;H:\\微信web开发者工具\\dll;D:\\微信web开发者工具\\dll;C:\\Users\\Administrator\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\Administrator\\AppData\\Roaming\\Composer\\vendor\\bin;C:\\Users\\Administrator\\AppData\\Roaming\\npm'
|
||||
'PATHEXT' => '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC'
|
||||
'PHPSTORM_VM_OPTIONS' => 'C:\\Users\\Administrator\\Downloads\\jetbra\\jetbra\\vmoptions\\phpstorm.vmoptions'
|
||||
'PROCESSOR_ARCHITECTURE' => 'AMD64'
|
||||
'PROCESSOR_IDENTIFIER' => 'Intel64 Family 6 Model 60 Stepping 3, GenuineIntel'
|
||||
'PROCESSOR_LEVEL' => '6'
|
||||
'PROCESSOR_REVISION' => '3c03'
|
||||
'ProgramData' => 'C:\\ProgramData'
|
||||
'ProgramFiles' => 'C:\\Program Files'
|
||||
'ProgramFiles(x86)' => 'C:\\Program Files (x86)'
|
||||
'ProgramW6432' => 'C:\\Program Files'
|
||||
'PSModulePath' => 'C:\\Program Files\\WindowsPowerShell\\Modules;C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules'
|
||||
'PUBLIC' => 'C:\\Users\\Public'
|
||||
'PYCHARM_VM_OPTIONS' => 'C:\\Users\\Administrator\\Downloads\\jetbra\\jetbra\\vmoptions\\pycharm.vmoptions'
|
||||
'RIDER_VM_OPTIONS' => 'C:\\Users\\Administrator\\Downloads\\jetbra\\jetbra\\vmoptions\\rider.vmoptions'
|
||||
'RUBYMINE_VM_OPTIONS' => 'C:\\Users\\Administrator\\Downloads\\jetbra\\jetbra\\vmoptions\\rubymine.vmoptions'
|
||||
'STUDIO_VM_OPTIONS' => 'C:\\Users\\Administrator\\Downloads\\jetbra\\jetbra\\vmoptions\\studio.vmoptions'
|
||||
'SystemDrive' => 'C:'
|
||||
'SystemRoot' => 'C:\\Windows'
|
||||
'TEMP' => 'C:\\Users\\Administrator\\AppData\\Local\\Temp'
|
||||
'TMP' => 'C:\\Users\\Administrator\\AppData\\Local\\Temp'
|
||||
'USERDOMAIN' => 'DESKTOP-VQUCCU1'
|
||||
'USERDOMAIN_ROAMINGPROFILE' => 'DESKTOP-VQUCCU1'
|
||||
'USERNAME' => 'Administrator'
|
||||
'USERPROFILE' => 'C:\\Users\\Administrator'
|
||||
'WEBIDE_VM_OPTIONS' => 'C:\\Users\\Administrator\\Downloads\\jetbra\\jetbra\\vmoptions\\webide.vmoptions'
|
||||
'WEBSTORM_VM_OPTIONS' => 'C:\\Users\\Administrator\\Downloads\\jetbra\\jetbra\\vmoptions\\webstorm.vmoptions'
|
||||
'windir' => 'C:\\Windows'
|
||||
'HTTP_COOKIE' => 'PHPSESSID=ebecjvqadu0oups836nheeh5gi; _csrf=d1f8c2401c5760a0be0adcbbe73003d235641d2b652901c15ebe437a136273b3a%3A2%3A%7Bi%3A0%3Bs%3A5%3A%22_csrf%22%3Bi%3A1%3Bs%3A32%3A%22-er2iWAt_-wBR8s20gulw51ncO_BHgw5%22%3B%7D'
|
||||
'HTTP_ACCEPT_LANGUAGE' => 'zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6'
|
||||
'HTTP_ACCEPT_ENCODING' => 'gzip, deflate'
|
||||
'HTTP_REFERER' => 'http://cxfoot.com/admin/passport/login?return_url=http%3A%2F%2Fcxfoot.com%2Fadmin%2Fstore%2Findex'
|
||||
'HTTP_ACCEPT' => 'image/webp,image/apng,image/svg+xml,image/*,*/*;q=0.8'
|
||||
'HTTP_USER_AGENT' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 Edg/117.0.2045.60'
|
||||
'HTTP_CONNECTION' => 'keep-alive'
|
||||
'HTTP_HOST' => 'cxfoot.com'
|
||||
'REDIRECT_STATUS' => '200'
|
||||
'SERVER_NAME' => 'cxfoot.com'
|
||||
'SERVER_PORT' => '80'
|
||||
'SERVER_ADDR' => '127.0.0.1'
|
||||
'REMOTE_PORT' => '65480'
|
||||
'REMOTE_ADDR' => '127.0.0.1'
|
||||
'SERVER_SOFTWARE' => 'nginx/1.15.11'
|
||||
'GATEWAY_INTERFACE' => 'CGI/1.1'
|
||||
'REQUEST_SCHEME' => 'http'
|
||||
'SERVER_PROTOCOL' => 'HTTP/1.1'
|
||||
'DOCUMENT_ROOT' => 'D:/phpstudy_pro_bak/WWW/cxfoot/web'
|
||||
'DOCUMENT_URI' => '/index.php'
|
||||
'REQUEST_URI' => '/upload/0/1/upload/image/2023/1101/1698828515356348.jpg'
|
||||
'SCRIPT_NAME' => '/index.php'
|
||||
'CONTENT_LENGTH' => ''
|
||||
'CONTENT_TYPE' => ''
|
||||
'REQUEST_METHOD' => 'GET'
|
||||
'QUERY_STRING' => ''
|
||||
'PATH_TRANSLATED' => 'D:/phpstudy_pro_bak/WWW/cxfoot/web'
|
||||
'PATH_INFO' => ''
|
||||
'SCRIPT_FILENAME' => 'D:/phpstudy_pro_bak/WWW/cxfoot/web/index.php'
|
||||
'FCGI_ROLE' => 'RESPONDER'
|
||||
'PHP_SELF' => '/index.php'
|
||||
'REQUEST_TIME_FLOAT' => 1700727841.6587
|
||||
'REQUEST_TIME' => 1700727841
|
||||
]
|
||||
|
||||
@ -1,5 +1,14 @@
|
||||
<?php
|
||||
|
||||
header('Content-Type: text/html;charset=utf-8');
|
||||
header('Access-Control-Allow-Origin:*'); // *代表允许任何网址请求
|
||||
header('Access-Control-Allow-Methods:POST,GET,OPTIONS,DELETE,PUT'); // 允许请求的类型
|
||||
header('Access-Control-Allow-Credentials: true'); // 设置是否允许发送 cookies
|
||||
header('Access-Control-Allow-Headers: Content-Type,Content-Length,Accept-Encoding,X-Requested-with, Origin,X-Csrf,Authorization,x-app-client-id,x-app-platform,x-app-version,x-csrf,x-mch-id,x-requested-time,x-requested-with,Language,access_token'); // 设置允许自定义请求头的字段
|
||||
// comment out the following two lines when deployed to production
|
||||
if($_SERVER['REQUEST_METHOD'] == 'OPTIONS'){
|
||||
echo json_encode(['code'=>'0','msg'=>'ok']);
|
||||
exit();
|
||||
}
|
||||
// comment out the following two lines when deployed to production
|
||||
defined('YII_DEBUG') or define('YII_DEBUG', true);
|
||||
defined('YII_ENV') or define('YII_ENV', 'dev');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user