|
@@ -562,6 +562,20 @@ class CameraApiController extends BaseController
|
|
|
return self::successResponse($result);
|
|
|
}
|
|
|
|
|
|
+ public function pictureBase64(){
|
|
|
+ $base64 = Input::get('base64', '');
|
|
|
+ $camera_id = Input::get('camera_id', '');
|
|
|
+
|
|
|
+ if (!$base64 || !$camera_id) {
|
|
|
+ return self::errorResponse(ApiEnum::STATUS_CODE_EMPTY);
|
|
|
+ }
|
|
|
+
|
|
|
+ $data['base64'] = $base64;
|
|
|
+ DB::table('camera_list')->where('id',$camera_id)->update($data);
|
|
|
+
|
|
|
+ return self::successResponse();
|
|
|
+ }
|
|
|
+
|
|
|
public function test(){
|
|
|
header("Access-Control-Allow-Origin: *");
|
|
|
$data = DB::table('goods')->get();
|