|
@@ -22,6 +22,7 @@ use think\Db as D;
|
|
|
|
|
|
use app\model\api\AppBug;
|
|
|
use app\model\api\User as UserModel;
|
|
|
+use app\model\api\AccessIp;
|
|
|
use app\model\api\ShowTemplate;
|
|
|
use app\model\api\UserShowTemplate;
|
|
|
use app\model\api\ServiceType;
|
|
@@ -301,6 +302,15 @@ class Pub extends BaseController
|
|
|
$data["is_type_audit"] = (empty($typeData) || $typeData["status"]!=1)?0:1;
|
|
|
|
|
|
(new UserModel)->where('uid', $uid)->inc('card_look_count', 1)->update();
|
|
|
+ $accessiInfo = [
|
|
|
+ 'uid' => $uid,
|
|
|
+ 'add_time' => time(),
|
|
|
+ 'url_ip' => $request->url(),
|
|
|
+
|
|
|
+ ];
|
|
|
+ $res = AccessIp::create($accessiInfo);
|
|
|
+
|
|
|
+
|
|
|
$data["card_look_count"] = $userData["card_look_count"]+1;
|
|
|
return app('json')->success($data);
|
|
|
}
|