|
@@ -38,11 +38,15 @@ class OrderService
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public function getOpenId($uid, $app_id)
|
|
|
+ public function getOpenId($uid)
|
|
|
{
|
|
|
- $res = UserOpenids::where('uid', $uid)
|
|
|
- ->where('appid', $app_id)
|
|
|
- ->first();
|
|
|
+ $res = UserOpenids::where('uid', $uid)->first();
|
|
|
+ return $res ? $res->toArray() : [];
|
|
|
+ }
|
|
|
+
|
|
|
+ public function getAppId($uid)
|
|
|
+ {
|
|
|
+ $res = UserOpenids::where('uid', $uid)->first();
|
|
|
return $res ? $res->toArray() : [];
|
|
|
}
|
|
|
|