更新商机列表及详情
This commit is contained in:
parent
634b876b9a
commit
efb2f2a8e3
app
api/controller
common/model/informationg
@ -128,26 +128,4 @@ class InformationController extends BaseApiController
|
||||
}
|
||||
return $this->success('成功');
|
||||
}
|
||||
|
||||
public function business_opportunity()
|
||||
{
|
||||
$param = Request()->param();
|
||||
[$page, $limit] = $this->getPage();
|
||||
if (isset($param['user_id']) && $param['user_id'] > 0) {
|
||||
$data[] = ['create_user_id', '=', $param['user_id']];
|
||||
} else {
|
||||
$data[] = ['company_id', '=', $this->userInfo['company_id']];
|
||||
}
|
||||
$res = UserInformationg::list($data, $page, $limit);
|
||||
if ($res != true) {
|
||||
return $this->fail(BaseLogic::getError());
|
||||
}
|
||||
$informationg_array = ($res->toArray()) ?? [];
|
||||
$informationg_id_array = ($res->column('id')) ?? [];
|
||||
$opportunity = UserInformationg::business_opportunity($informationg_id_array);
|
||||
foreach($informationg_array as $k=>$v) {
|
||||
$informationg_array[$k]['opportunity'] = $opportunity[$v['id']] ?? [];
|
||||
}
|
||||
return $this->success('ok', $informationg_array);
|
||||
}
|
||||
}
|
||||
|
41
app/api/controller/ZhiboController.php
Normal file
41
app/api/controller/ZhiboController.php
Normal file
@ -0,0 +1,41 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace app\api\controller;
|
||||
|
||||
use think\facade\Db;
|
||||
use WebSocket\Client;
|
||||
use GuzzleHttp\Client as GzClient;
|
||||
use GuzzleHttp\Psr7\Request;
|
||||
use GuzzleHttp\Exception\GuzzleException;
|
||||
use Guzzle\Http\Exception\RequestException;
|
||||
|
||||
/**
|
||||
* 七牛直播
|
||||
* Class ZhiboController
|
||||
*/
|
||||
class ZhiboController extends BaseApiController
|
||||
{
|
||||
public array $notNeedLogin = ['chat'];
|
||||
|
||||
private $app_id='2eda6c2e';
|
||||
private $api_key='12ec1f9d113932575fc4b114a2f60ffd';
|
||||
private $api_secret='MDEyMzE5YTc5YmQ5NjMwOTU1MWY4N2Y2';
|
||||
|
||||
public function chat()
|
||||
{
|
||||
return $this->data([]);
|
||||
}
|
||||
|
||||
}
|
@ -141,7 +141,10 @@ class UserInformationg extends BaseModel
|
||||
$arr = [
|
||||
'id' => $v['category_child'],
|
||||
'update_time' => $v['update_time'],
|
||||
'datas' => $v['data']
|
||||
'datas' => $v['data'],
|
||||
'data_field' => json_decode($v['data_field']),
|
||||
'ai_question' => $v['ai_question'],
|
||||
'ai_aianalyse' => $v['ai_aianalyse'],
|
||||
];
|
||||
if ($v['data']) {
|
||||
array_push($datas, $arr);
|
||||
|
Loading…
x
Reference in New Issue
Block a user