@@ -938,6 +938,7 @@ class FurnitureController extends Controller
$user->phone = $data['customer_phone'];
$user->save();
+
$res = AlbumOrderModel::create($data);
if ($res) {
$this->getQrcode(request('store_id'), $res->id);
@@ -51,7 +51,7 @@ class AlbumCommentsModel extends BaseModel
}
public function username(){
- return (new AlbumUserModel())->find($this->user_id)->username;
+ return (new AlbumUserModel())->find($this->user_id)?(new AlbumUserModel())->find($this->user_id)->username:$this->user_id;
public function replys(){