diff --git a/Laravel/app/Http/Controllers/API/ApiMapController.php b/Laravel/app/Http/Controllers/API/ApiMapController.php index b5ff84c..6d3218b 100644 --- a/Laravel/app/Http/Controllers/API/ApiMapController.php +++ b/Laravel/app/Http/Controllers/API/ApiMapController.php @@ -83,7 +83,8 @@ class ApiMapController extends Controller 'UserHunjian' => $base_url . '/api/H5/User/hunjian', // 婚检人员信息 'hunjianBySFZ' => $base_url . '/api/H5/hunjianBySFZ', // 婚检人员信息 'CheckedSignIn' => $base_url . '/api/H5/CheckedSignIn', // 检后签到 - + 'SendMsgCode' => $base_url . '/api/H5/SendMsgCode', // 发送验证码 + 'CheckMsgCode' => $base_url . '/api/H5/CheckMsgCode', // 验证验证码 ]; } diff --git a/Laravel/app/Http/Controllers/API/AspNetZhuanController.php b/Laravel/app/Http/Controllers/API/AspNetZhuanController.php index bf4e341..8dda90b 100644 --- a/Laravel/app/Http/Controllers/API/AspNetZhuanController.php +++ b/Laravel/app/Http/Controllers/API/AspNetZhuanController.php @@ -71,7 +71,19 @@ class AspNetZhuanController extends Controller $content=$time." 健康体检。请提前10分钟凭身份证到".$yy_name.$keshi."签到。建议体检前3天清淡饮食、禁烟酒。体检当天需禁食禁水,空腹6小时以上"; $url=self::$BaseUrl."/tuisong.aspx?yyid=".$yyid."&type=8&mobile=".$tel."&msg1=".urlencode($name)."&msg2=".urlencode($content); self::get($url,"短信发送"); - + } + //发送验证码 + public static function SendYanZhengMaCode($r_yyid,$tel,$code){ + if($r_yyid==1){ + $yyid=6; + $yy_name="现代妇儿秀英院区"; + } + if($r_yyid==4){ + $yyid=2; + $yy_name="现代妇儿府城院区"; + } + $url=self::$BaseUrl."/tuisong.aspx?yyid=".$yyid."&type=13&mobile=".$tel."&msg1=".urlencode($code); + self::get($url,"短信发送"); } //获取优惠卷类型 diff --git a/Laravel/app/Http/Controllers/API/H5/UserController.php b/Laravel/app/Http/Controllers/API/H5/UserController.php index 6c4a0cb..1a37e70 100644 --- a/Laravel/app/Http/Controllers/API/H5/UserController.php +++ b/Laravel/app/Http/Controllers/API/H5/UserController.php @@ -212,7 +212,9 @@ class UserController extends Controller if(!!$hunjianLog){ $person_info=json_decode($hunjianLog->content,true); - + unset($person_info['详细地址省市区']); + unset($person_info['详细地址']); + unset($person_info['邮政编码']); } return \Yz::Return(true, '获取成功', [ diff --git a/Laravel/app/Http/Controllers/API/SendMsgCodeController.php b/Laravel/app/Http/Controllers/API/SendMsgCodeController.php new file mode 100644 index 0000000..a0b540b --- /dev/null +++ b/Laravel/app/Http/Controllers/API/SendMsgCodeController.php @@ -0,0 +1,54 @@ +where('mobile', $mobile)->where('created_at', '>=', date('Y-m-d H:i:s', time() - 60))->first(); + if ($code) { + return \Yz::echoError1("操作太频繁,请稍后再试"); + } + $code = rand(100000, 999999); + //获取当前时间5分钟后的日期时间 + $end_time = date('Y-m-d H:i:s', time() + 300); + $i=DB::table('send_code')->insert([ + 'mobile' => $mobile, + 'code' => $code, + 'created_at' => date('Y-m-d H:i:s'), + 'end_time' => $end_time + ]); + if ($i) { + $aspnet=new AspNetZhuanController(); + $aspnet::SendYanZhengMaCode(1,$mobile,$code); + return \Yz::Return(true,"发送成功",[]); + } else { + return \Yz::echoError1("发送失败"); + } + + } + //验证验证码 + public function CheckMsgCode(){ + $mobile = request('mobile'); + $code = request('code'); + $u = DB::table('send_code') + ->where('mobile', $mobile) + ->where('code', $code) + ->where('end_time', '>=', date('Y-m-d H:i:s')) + ->where(['status' => 1]) + ->update(['status' => 2]); + if($u){ + return \Yz::Return(true,"验证成功",['data'=>$code]); + }else{ + return \Yz::echoError1("验证码无效"); + } + } +} diff --git a/Laravel/app/Http/Controllers/TestController.php b/Laravel/app/Http/Controllers/TestController.php index 10d0740..4dcac6f 100644 --- a/Laravel/app/Http/Controllers/TestController.php +++ b/Laravel/app/Http/Controllers/TestController.php @@ -57,43 +57,9 @@ class TestController extends Controller //-------------- $aspnet=new AspNetZhuanController(); - //医生排班 - $res = $aspnet->GetDoctorDateList([ - "yyid" => 6, - "data" => ["2024-12-24", - "2024-12-25", - "2024-12-26", - "2024-12-27", - "2024-12-28", - "2024-12-29", - "2024-12-30", - "2024-12-31", - "2025-01-01", - "2025-01-02", - "2025-01-03", - "2025-01-04", - "2025-01-05", - "2025-01-06", - "2025-01-07", - "2025-01-08", - "2025-01-09", - "2025-01-10", - "2025-01-11", - "2025-01-12", - "2025-01-13", - "2025-01-14", - "2025-01-15", - "2025-01-16", - "2025-01-17", - "2025-01-18", - "2025-01-19", - "2025-01-20", - "2025-01-21", - "2025-01-22", - "2025-01-23"], - "action" => "1" - ]); - dd($res); + // $res=$aspnet::SendYanZhengMaCode(1,"19933509886"); + + // dd($res); //优惠券----------------- // $data=[ // 'action'=>4, diff --git a/Laravel/routes/web.php b/Laravel/routes/web.php index cd5ee8e..248564f 100644 --- a/Laravel/routes/web.php +++ b/Laravel/routes/web.php @@ -29,6 +29,8 @@ Route::get('/wxLogin/{env}', function ($env) { Route::get('/wxGetCode', 'App\Http\Controllers\API\mH5\LoginController@wxGetCode'); Route::get('/test', 'App\Http\Controllers\TestController@DBtest'); + + Route::any('/payNotify', 'App\Http\Controllers\API\H5\PayController@Notify')->middleware('log');//支付回调 Route::group(['middleware' => ['log'],'prefix' => 'api/H5'], function () { Route::post('/CheckUpTypeGetList', 'App\Http\Controllers\API\H5\CheckUpTypeController@GetList');//获取体检类型分类 @@ -72,6 +74,8 @@ Route::group(['middleware' => ['log'],'prefix' => 'api/H5'], function () { Route::post('/HunQianQuestionSubmit', 'App\Http\Controllers\API\H5\QuestionController@HunQianQuestionSubmit');//婚前问卷提交 Route::post('/hunjianBySFZ', 'App\Http\Controllers\API\H5\UserController@hunjianBySFZ');//根据身份证查询建档信息 Route::post('/CheckedSignIn', 'App\Http\Controllers\API\H5\OrderController@CheckedSignIn');//检后签到 + Route::post('/SendMsgCode', 'App\Http\Controllers\API\SendMsgCodeController@SendMsgCode');//发送验证码 + Route::post('/CheckMsgCode', 'App\Http\Controllers\API\SendMsgCodeController@CheckMsgCode');//验证验证码 diff --git a/bot/workerman/composer.json b/bot/workerman/composer.json index fdd4808..98601fd 100755 --- a/bot/workerman/composer.json +++ b/bot/workerman/composer.json @@ -24,7 +24,7 @@ "source": "https://github.com/walkor/workerman" }, "require": { - "php": ">=5.3" + "php": ">=5.5" }, "suggest": { "ext-event": "For better performance. " diff --git a/h5/common/PriceRange.vue b/h5/common/PriceRange.vue new file mode 100644 index 0000000..5f57210 --- /dev/null +++ b/h5/common/PriceRange.vue @@ -0,0 +1,131 @@ + + + + + + \ No newline at end of file diff --git a/h5/pages.json b/h5/pages.json index a6b2273..09493a3 100644 --- a/h5/pages.json +++ b/h5/pages.json @@ -14,6 +14,14 @@ "navigationBarTextStyle": "white" } }, + { + "path": "pages/main/combo/combo_new", + "style": { + "navigationBarTitleText": "套餐", + "navigationBarBackgroundColor": "#239EA3", + "navigationBarTextStyle": "white" + } + }, { "path": "pages/main/combo/tcdb", "style": { @@ -276,6 +284,14 @@ "style": { "navigationBarTitleText": "预约医生" } + }, + { + "path" : "pages/test/test", + "style" : + { + "navigationBarTitleText" : "", + "enablePullDownRefresh" : false + } } ], diff --git a/h5/pages/main/combo/combo_new.vue b/h5/pages/main/combo/combo_new.vue new file mode 100644 index 0000000..e78503b --- /dev/null +++ b/h5/pages/main/combo/combo_new.vue @@ -0,0 +1,1103 @@ + + + diff --git a/h5/pages/main/index/index.vue b/h5/pages/main/index/index.vue index 3ae2919..4e50284 100644 --- a/h5/pages/main/index/index.vue +++ b/h5/pages/main/index/index.vue @@ -203,6 +203,11 @@ url: '/pages/other/entry/index?path=/pages/physical-examination/location/index'+p }) }; + const gotoo=()=>{ + uni.navigateTo({ + url: "/pages/test/test" + }) + } onShow(() => { @@ -231,6 +236,7 @@ getUserInfo() $store.setCheckupTypeId({}); $store.setDuoXuanYi({}); + $store.setPeiOuUser({}); }) diff --git a/h5/pages/main/question/question/question.vue b/h5/pages/main/question/question/question.vue index 4e2c239..cd0960c 100644 --- a/h5/pages/main/question/question/question.vue +++ b/h5/pages/main/question/question/question.vue @@ -309,7 +309,7 @@ }