|
@@ -30,7 +30,7 @@ class MetaRepository {
|
|
|
}
|
|
|
//详情
|
|
|
public function view($request){
|
|
|
- return $this->meta->where(['patch_num'=>$request['patch_num']])->first();
|
|
|
+ return $this->meta->where(['id'=>$request['patch_num']])->first();
|
|
|
}
|
|
|
//创建
|
|
|
public function create($request){
|
|
@@ -67,7 +67,7 @@ class MetaRepository {
|
|
|
$meta = $this->meta->create($data);
|
|
|
|
|
|
DB::commit();
|
|
|
- QrCode::size(200)->generate("http://trace.uptoyo.com/".$meta['patch_num'],public_path().'/qrcodes/'.$meta['patch_num'].'.png');
|
|
|
+ QrCode::size(200)->generate("http://uptoyo.com/".$meta['id'],public_path().'/qrcodes/'.$meta['patch_num'].'.png');
|
|
|
return Response::create();
|
|
|
}catch (QueryException $exception){
|
|
|
DB::rollBack();
|