|
|
|
|
34
|
$profile = Survey::where('line_user_id',$request->lineUserId)->first();
|
34
|
$profile = Survey::where('line_user_id',$request->lineUserId)->first();
|
35
|
if(!empty($profile->id)){
|
35
|
if(!empty($profile->id)){
|
36
|
$profile->filler_content = json_decode($profile->filler_content, true);
|
36
|
$profile->filler_content = json_decode($profile->filler_content, true);
|
37
|
- $this->botActionsSend($lineUserId,[$this->buildActionsRequest("setMenu", config("botApi.setMenuDoneSurvey"))]);
|
|
|
|
|
37
|
+ $this->botActionsSend($request->lineUserId,[$this->buildActionsRequest("setMenu", config("botApi.setMenuDoneSurvey"))]);
|
38
|
}
|
38
|
}
|
39
|
return response()->json(["data" => $profile] );
|
39
|
return response()->json(["data" => $profile] );
|
40
|
}
|
40
|
}
|