function self_test($data_two =[] , $return_mark)
{
if( !empty($data_two) ){
$_POST=$data_two;
}
$data = $_POST;
//自测结果分数
$sum_score = array_pop($data);
if($return_mark){
return $data;
}
foreach ($data as $key => $value)
{
$new_arr[$value[0]] = $value[1];
}
$this->IDataBank->self_test($new_arr['年龄'],$new_arr['病史'],$new_arr['量'],$new_arr['周期'],$new_arr['期'],$new_arr['质'],$new_arr['经'],$new_arr['感觉']);
}
function result_test()
{
$da = $_POST;
$aa = $this->self_test($_POST , 1 );
print_r($aa);die;
$this->IDataBank->result_test($da['name']);
}
方法与方法之间传参
最新推荐文章于 2023-05-23 15:52:52 发布