2024-04-25 14:35:33 +08:00
|
|
|
|
<?php
|
|
|
|
|
|
|
2024-04-26 10:05:17 +08:00
|
|
|
|
namespace app\app\controller;
|
2024-04-25 14:35:33 +08:00
|
|
|
|
|
|
|
|
|
|
use think\Controller;
|
2024-07-26 18:34:47 +08:00
|
|
|
|
use think\Db;
|
2024-04-25 14:35:33 +08:00
|
|
|
|
|
2024-07-26 18:34:47 +08:00
|
|
|
|
class Download extends Base{
|
2024-04-25 14:35:33 +08:00
|
|
|
|
public function demo(){
|
2024-07-26 18:34:47 +08:00
|
|
|
|
|
2024-09-06 18:21:33 +08:00
|
|
|
|
// $num = Db::table('app_version_log')->order('id desc')->find();
|
|
|
|
|
|
// echo '你好,这里仅仅是个下载展示页面-1';
|
|
|
|
|
|
// echo '<br><a href="'.$num['download_url'].'">点击下载</a>';
|
|
|
|
|
|
$url = Db::table('app_version_log')->order('id desc')->find();
|
|
|
|
|
|
$this->assign([
|
|
|
|
|
|
|
|
|
|
|
|
'url' => $url['download_url'],
|
|
|
|
|
|
]);
|
|
|
|
|
|
return $this->fetch();
|
2024-04-25 14:35:33 +08:00
|
|
|
|
}
|
2024-08-03 17:56:26 +08:00
|
|
|
|
|
|
|
|
|
|
public function demo2(){
|
|
|
|
|
|
|
|
|
|
|
|
$url = Db::table('app_version_log')->order('id desc')->find();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$this->assign([
|
|
|
|
|
|
|
|
|
|
|
|
'url' => $url['download_url'],
|
|
|
|
|
|
]);
|
|
|
|
|
|
return $this->fetch();
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2024-12-26 19:14:44 +08:00
|
|
|
|
public function business_cooperation(){
|
|
|
|
|
|
return $this->fetch();
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public function business_cooperation_action(){
|
|
|
|
|
|
$data = input();
|
|
|
|
|
|
$result = Db::table('admin_business_cooperation_log')->insert([
|
|
|
|
|
|
'name'=>$data['name'],
|
|
|
|
|
|
'tel'=>$data['phone'],
|
|
|
|
|
|
'company'=>$data['company'],
|
|
|
|
|
|
'intention_data'=>implode(',',$data['selectedValues']),
|
|
|
|
|
|
'notes_data'=>$data['remark'],
|
|
|
|
|
|
'create_time'=>date('Y-m-d H:i:s'),
|
|
|
|
|
|
]);
|
|
|
|
|
|
if($result){
|
|
|
|
|
|
$this->send_email_api_error(["tsf3920322@126.com"],['title'=>'商户合作','from_user_name'=>'reedaw商务','content'=>'有一封商户合作']);
|
|
|
|
|
|
return json(['code'=>0,'msg'=>'提交成功']);
|
|
|
|
|
|
}else{
|
|
|
|
|
|
return json(['code'=>10001,'msg'=>'网络错误,请直接联系商务合作电话/微信:13590959084']);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2024-08-03 17:56:26 +08:00
|
|
|
|
public function ceshi(){
|
|
|
|
|
|
$data = input();
|
|
|
|
|
|
$url = 'https://klcz.pcxbc.com/open-api/calc/healthcalc/bodyfat3';
|
|
|
|
|
|
$temporary_parameter = [
|
|
|
|
|
|
'weight'=>$data['weight'],
|
|
|
|
|
|
'height'=>$data['height'],
|
|
|
|
|
|
'age'=>$data['age'],
|
|
|
|
|
|
'adc'=>$data['adc'],
|
|
|
|
|
|
'gender'=>$data['gender'],
|
|
|
|
|
|
];
|
|
|
|
|
|
dump($temporary_parameter);
|
|
|
|
|
|
|
|
|
|
|
|
$result = $this->postRequest($url,$temporary_parameter);
|
|
|
|
|
|
dump($result);
|
|
|
|
|
|
die;
|
|
|
|
|
|
}
|
2024-04-25 14:35:33 +08:00
|
|
|
|
}
|