|
@@ -259,9 +259,10 @@ class IndexController extends Controller
|
|
|
|
|
|
public function qjwjStatus(Request $request){
|
|
|
|
|
|
- $info = QjwjAppoint::where(['id' => $request->id])->get();
|
|
|
+ $info = QjwjAppoint::where(['id' => $request->id])->first();
|
|
|
if($info){
|
|
|
- QjwjAppoint::where(['id' => $request->id])->save(['status' => 1]);
|
|
|
+ $info->status = 1;
|
|
|
+ $info->save();
|
|
|
return response()->json(['status' => 1, 'msg' => '跳转下载中!', 'data' => 'ok', 'url' => $info->attachment]);
|
|
|
}else{
|
|
|
return response()->json(['status' => 0, 'msg' => '找不到记录!', 'data' => 'fail']);
|