|
@@ -65,7 +65,7 @@ use Illuminate\Support\Facades\Cache;
|
|
use App\Model\Company;
|
|
use App\Model\Company;
|
|
use Hyperf\Paginator\Paginator;
|
|
use Hyperf\Paginator\Paginator;
|
|
use App\Model\Project;
|
|
use App\Model\Project;
|
|
-
|
|
|
|
|
|
+use App\Model\WhiteRouter;
|
|
#[RpcService(name: "NewsService", protocol: "jsonrpc-http", server: "jsonrpc-http")]
|
|
#[RpcService(name: "NewsService", protocol: "jsonrpc-http", server: "jsonrpc-http")]
|
|
class NewsService implements NewsServiceInterface
|
|
class NewsService implements NewsServiceInterface
|
|
{
|
|
{
|
|
@@ -3366,20 +3366,25 @@ class NewsService implements NewsServiceInterface
|
|
}
|
|
}
|
|
break;
|
|
break;
|
|
case 6:
|
|
case 6:
|
|
- // 招工招聘
|
|
|
|
- // `status` int DEFAULT '1' COMMENT '审核状态,1待审核2已审核3已拒绝',
|
|
|
|
- $article = JobRecruiting::where('website_id', $data['website_id'])
|
|
|
|
|
|
+ // 企业
|
|
|
|
+ // `status` int DEFAULT '1' COMMENT '审核状态状态:0:未审核;1:已审核;2:已拒绝;',
|
|
|
|
+ $article = Company::where('website_id', $data['website_id'])
|
|
->where('status', 1)
|
|
->where('status', 1)
|
|
->where('id', $data['id'])
|
|
->where('id', $data['id'])
|
|
->first(['cat_arr_id']);
|
|
->first(['cat_arr_id']);
|
|
if (empty($article)) {
|
|
if (empty($article)) {
|
|
- $article = JobHunting::where('website_id', $data['website_id'])
|
|
|
|
- ->where('status', 2)
|
|
|
|
- ->where('id', $data['id'])
|
|
|
|
- ->first(['cat_arr_id']);
|
|
|
|
|
|
+ return Result::error("该企业不存在", 0);
|
|
}
|
|
}
|
|
|
|
+ break;
|
|
|
|
+ case 7:
|
|
|
|
+ // 项目
|
|
|
|
+ // `status` int DEFAULT '1' COMMENT '审核状态状态:0:未审核;1:已审核;2:已拒绝;',
|
|
|
|
+ $article = Project::where('website_id', $data['website_id'])
|
|
|
|
+ ->where('status', 1)
|
|
|
|
+ ->where('id', $data['id'])
|
|
|
|
+ ->first(['cat_arr_id']);
|
|
if (empty($article)) {
|
|
if (empty($article)) {
|
|
- return Result::error("该招工招聘不存在", 0);
|
|
|
|
|
|
+ return Result::error("该项目不存在", 0);
|
|
}
|
|
}
|
|
break;
|
|
break;
|
|
default:
|
|
default:
|