|
@@ -17,6 +17,7 @@ use App\Models\InterestCircleMessageImg;
|
|
use App\Models\InterestCircleUser;
|
|
use App\Models\InterestCircleUser;
|
|
use App\Models\Post;
|
|
use App\Models\Post;
|
|
use App\Service\DetectionService;
|
|
use App\Service\DetectionService;
|
|
|
|
+use App\Traits\UserTrait;
|
|
use Illuminate\Database\QueryException;
|
|
use Illuminate\Database\QueryException;
|
|
use Dingo\Api\Http\Response;
|
|
use Dingo\Api\Http\Response;
|
|
use Illuminate\Support\Carbon;
|
|
use Illuminate\Support\Carbon;
|
|
@@ -26,7 +27,7 @@ use Illuminate\Support\Facades\Redis;
|
|
|
|
|
|
class CircleMessageRepository
|
|
class CircleMessageRepository
|
|
{
|
|
{
|
|
-
|
|
|
|
|
|
+ use UserTrait;
|
|
public function __construct(InterestCircle $interestCircle,
|
|
public function __construct(InterestCircle $interestCircle,
|
|
InterestCircleMessage $interestCircleMessage,
|
|
InterestCircleMessage $interestCircleMessage,
|
|
InterestCircleMessageImg $interestCircleMessageImg,
|
|
InterestCircleMessageImg $interestCircleMessageImg,
|
|
@@ -67,6 +68,8 @@ class CircleMessageRepository
|
|
{
|
|
{
|
|
//验证小号
|
|
//验证小号
|
|
$userInfo = $this->getUserInfo();
|
|
$userInfo = $this->getUserInfo();
|
|
|
|
+// $userInfo['sns_status']=1;
|
|
|
|
+// $userInfo['uid']=268;
|
|
if (empty($userInfo)) {
|
|
if (empty($userInfo)) {
|
|
return jsonError('获取用户信息失败');
|
|
return jsonError('获取用户信息失败');
|
|
}
|
|
}
|