|
|
|
|
@ -132,7 +132,7 @@ class VisitController extends CommonController
|
|
|
|
|
'value' => $accpetDepartment->name ?? ''
|
|
|
|
|
],
|
|
|
|
|
];
|
|
|
|
|
$res = Visit::subMsg('DmzNRREPFdZrMWconNDdbj_ebtVPRWufq27kRQ25eNg', $this->getUser()->openid, $templateData,$model->id);
|
|
|
|
|
$res = Visit::subMsg('DmzNRREPFdZrMWconNDdbj_ebtVPRWufq27kRQ25eNg', $this->getUser()->openid, $templateData, $model->id);
|
|
|
|
|
DB::commit();
|
|
|
|
|
return $this->success('更新成功');
|
|
|
|
|
} catch (\Exception $exception) {
|
|
|
|
|
@ -224,6 +224,7 @@ class VisitController extends CommonController
|
|
|
|
|
* tags={"小程序-学习"},
|
|
|
|
|
* summary="获取学习记录",
|
|
|
|
|
* description="",
|
|
|
|
|
* @OA\Parameter(name="type", in="query", @OA\Schema(type="string"), required=true, description="类型"),
|
|
|
|
|
* @OA\Parameter(name="token", in="query", @OA\Schema(type="string"), required=true, description="token"),
|
|
|
|
|
* @OA\Response(
|
|
|
|
|
* response="200",
|
|
|
|
|
@ -233,7 +234,8 @@ class VisitController extends CommonController
|
|
|
|
|
*/
|
|
|
|
|
public function askLog()
|
|
|
|
|
{
|
|
|
|
|
$log = StudyLog::orderBy('id', 'desc')->first();
|
|
|
|
|
$type = request('type');
|
|
|
|
|
$log = StudyLog::where('type', $type)->orderBy('id', 'desc')->first();
|
|
|
|
|
if (empty($log)) {
|
|
|
|
|
return $this->fail([ResponseCode::ERROR_BUSINESS, '未学习']);
|
|
|
|
|
}
|
|
|
|
|
|