Compare commits

..

37 Commits
master ... dyb

Author SHA1 Message Date
戴余标 bb035b5119 企业微信登录验证
1 year ago
戴余标 048ed843b8 bug修改
1 year ago
戴余标 8473cdc3d5 Merge branch 'master' of https://git.oa00.com/mengfucius/wkcrm
2 years ago
戴余标 7b67e58ea3 Merge branch 'master' of https://git.oa00.com/mengfucius/wkcrm
2 years ago
戴余标 add0179a2d Merge branch 'master' of https://git.oa00.com/mengfucius/wkcrm
2 years ago
戴余标 ae5f35941d Merge branch 'master' of https://git.oa00.com/mengfucius/wkcrm
2 years ago
戴余标 3d11da1077 ww
2 years ago
戴余标 0dc65dd447 Merge branch 'master' of https://git.oa00.com/mengfucius/wkcrm
2 years ago
戴余标 1c88bd4577 Merge branch 'master' of https://git.oa00.com/mengfucius/wkcrm
2 years ago
戴余标 85e7420e8f Merge branch 'master' of https://git.oa00.com/mengfucius/wkcrm
2 years ago
戴余标 311b51b802 Merge branch 'master' of https://git.oa00.com/mengfucius/wkcrm
2 years ago
戴余标 a099d3104c Merge branch 'master' of https://git.oa00.com/mengfucius/wkcrm
2 years ago
戴余标 c8b8556c03 Merge branch 'master' of https://git.oa00.com/mengfucius/wkcrm
2 years ago
戴余标 1e26559183 Merge branch 'master' of https://git.oa00.com/mengfucius/wkcrm
2 years ago
戴余标 a2329555c4 Merge branch 'master' of https://git.oa00.com/mengfucius/wkcrm
2 years ago
戴余标 d9f299c3d4 Merge branch 'master' of https://git.oa00.com/mengfucius/wkcrm
2 years ago
戴余标 94fb7cb66d Merge branch 'master' of https://git.oa00.com/mengfucius/wkcrm
2 years ago
戴余标 e0af6bb0e1 Merge branch 'master' of https://git.oa00.com/mengfucius/wkcrm
2 years ago
戴余标 fd94e68f87 Merge branch 'master' of https://git.oa00.com/mengfucius/wkcrm
2 years ago
戴余标 fc563cd389 Merge branch 'master' of https://git.oa00.com/mengfucius/wkcrm
2 years ago
戴余标 6b0964282c Merge branch 'master' of https://git.oa00.com/mengfucius/wkcrm
2 years ago
戴余标 2eb28996dc Merge branch 'master' of https://git.oa00.com/mengfucius/wkcrm
2 years ago
戴余标 c99fa001aa Merge branch 'master' of https://git.oa00.com/mengfucius/wkcrm
2 years ago
戴余标 e124bd5089 Merge branch 'master' of https://git.oa00.com/mengfucius/wkcrm
2 years ago
戴余标 e5a96e620e Merge branch 'master' of https://git.oa00.com/mengfucius/wkcrm
2 years ago
戴余标 44dc883a4e Merge branch 'master' of https://git.oa00.com/mengfucius/wkcrm
2 years ago
戴余标 1351192db6 Merge branch 'master' of https://git.oa00.com/mengfucius/wkcrm
2 years ago
戴余标 fcf7edc24f Merge branch 'master' of https://git.oa00.com/mengfucius/wkcrm
2 years ago
戴余标 dc39d42687 Merge branch 'master' of https://git.oa00.com/mengfucius/wkcrm
2 years ago
戴余标 9b88413c66 Merge branch 'master' of https://git.oa00.com/mengfucius/wkcrm
2 years ago
戴余标 8fd43fea1e Merge branch 'master' of https://git.oa00.com/mengfucius/wkcrm
2 years ago
戴余标 a93b377c08 。。。
2 years ago
戴余标 707e4ee948 Merge branch 'master' of https://git.oa00.com/mengfucius/wkcrm
2 years ago
戴余标 dcd2845f61 Merge branch 'master' of https://git.oa00.com/mengfucius/wkcrm
2 years ago
戴余标 00e52534a4 小改动
2 years ago
戴余标 7145dc79b2 11
2 years ago
戴余标 577effcbc9 用户权限及刷新
2 years ago

@ -0,0 +1,71 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="MessDetectorOptionsConfiguration">
<option name="transferred" value="true" />
</component>
<component name="PHPCSFixerOptionsConfiguration">
<option name="transferred" value="true" />
</component>
<component name="PHPCodeSnifferOptionsConfiguration">
<option name="highlightLevel" value="WARNING" />
<option name="transferred" value="true" />
</component>
<component name="PhpIncludePathManager">
<include_path>
<path value="$PROJECT_DIR$/vendor/topthink/think-installer" />
<path value="$PROJECT_DIR$/vendor/topthink/think-sae" />
<path value="$PROJECT_DIR$/vendor/pclzip/pclzip" />
<path value="$PROJECT_DIR$/vendor/topthink/think-worker" />
<path value="$PROJECT_DIR$/vendor/phpexcel/PHPExcel" />
<path value="$PROJECT_DIR$/vendor/topthink/think-image" />
<path value="$PROJECT_DIR$/vendor/topthink/think-mongo" />
<path value="$PROJECT_DIR$/vendor/phpspec/prophecy" />
<path value="$PROJECT_DIR$/vendor/composer" />
<path value="$PROJECT_DIR$/vendor/zendframework/zend-escaper" />
<path value="$PROJECT_DIR$/vendor/sebastian/recursion-context" />
<path value="$PROJECT_DIR$/vendor/sebastian/diff" />
<path value="$PROJECT_DIR$/vendor/sebastian/global-state" />
<path value="$PROJECT_DIR$/vendor/sebastian/comparator" />
<path value="$PROJECT_DIR$/vendor/sebastian/environment" />
<path value="$PROJECT_DIR$/vendor/sebastian/exporter" />
<path value="$PROJECT_DIR$/vendor/sebastian/version" />
<path value="$PROJECT_DIR$/vendor/phpdocumentor/reflection-docblock" />
<path value="$PROJECT_DIR$/vendor/phpdocumentor/type-resolver" />
<path value="$PROJECT_DIR$/vendor/phpdocumentor/reflection-common" />
<path value="$PROJECT_DIR$/vendor/doctrine/instantiator" />
<path value="$PROJECT_DIR$/vendor/phpoffice/phpspreadsheet" />
<path value="$PROJECT_DIR$/vendor/webmozart/assert" />
<path value="$PROJECT_DIR$/vendor/symfony/polyfill-mbstring" />
<path value="$PROJECT_DIR$/vendor/phpoffice/phpword" />
<path value="$PROJECT_DIR$/vendor/symfony/yaml" />
<path value="$PROJECT_DIR$/vendor/phpoffice/common" />
<path value="$PROJECT_DIR$/vendor/symfony/dom-crawler" />
<path value="$PROJECT_DIR$/vendor/phpoffice/phpexcel" />
<path value="$PROJECT_DIR$/vendor/symfony/polyfill-ctype" />
<path value="$PROJECT_DIR$/vendor/workerman/workerman" />
<path value="$PROJECT_DIR$/vendor/psr/simple-cache" />
<path value="$PROJECT_DIR$/vendor/phpunit/php-timer" />
<path value="$PROJECT_DIR$/vendor/phpunit/php-file-iterator" />
<path value="$PROJECT_DIR$/vendor/phpunit/php-text-template" />
<path value="$PROJECT_DIR$/vendor/phpunit/phpunit" />
<path value="$PROJECT_DIR$/vendor/topthink/think-testing" />
<path value="$PROJECT_DIR$/vendor/markbaker/matrix" />
<path value="$PROJECT_DIR$/vendor/phpunit/phpunit-mock-objects" />
<path value="$PROJECT_DIR$/vendor/topthink/think-helper" />
<path value="$PROJECT_DIR$/vendor/markbaker/complex" />
<path value="$PROJECT_DIR$/vendor/phpunit/php-code-coverage" />
<path value="$PROJECT_DIR$/vendor/topthink/think-queue" />
<path value="$PROJECT_DIR$/vendor/phpunit/php-token-stream" />
<path value="$PROJECT_DIR$/vendor/topthink/think-migration" />
</include_path>
</component>
<component name="PhpProjectSharedConfiguration" php_language_level="8.0">
<option name="suggestChangeDefaultLanguageLevel" value="false" />
</component>
<component name="PhpStanOptionsConfiguration">
<option name="transferred" value="true" />
</component>
<component name="PsalmOptionsConfiguration">
<option name="transferred" value="true" />
</component>
</project>

@ -1 +0,0 @@
open_basedir=/www/wwwroot/72crm/:/tmp/

@ -651,7 +651,7 @@ class User extends Common
$wxuser_id = Session::get('wxuser_id'); $wxuser_id = Session::get('wxuser_id');
if ($wxuser_id) { if ($wxuser_id) {
$data['authKey'] = 'wxwork'; $data['authKey'] = $authKey;
$userData['wxwork_id'] = $wxuser_id; $userData['wxwork_id'] = $wxuser_id;
} else { } else {
$userData['authkey'] = $authKey; $userData['authkey'] = $authKey;

@ -131,6 +131,7 @@ class Callback extends Controller
if (isset($userInfo['userid']) && $userInfo['userid']) { if (isset($userInfo['userid']) && $userInfo['userid']) {
Session::set('wxuser_id', $userInfo['userid']); Session::set('wxuser_id', $userInfo['userid']);
$adminUser = db('admin_user')->where('wxwork_id', $userInfo['userid'])->find(); $adminUser = db('admin_user')->where('wxwork_id', $userInfo['userid'])->find();
if($adminUser['status']==1){
if ($adminUser) { if ($adminUser) {
Session::set('user_id', $adminUser['id']); Session::set('user_id', $adminUser['id']);
@ -157,6 +158,7 @@ class Callback extends Controller
return redirect('http://web.lbschem.com:8088/?authkey=wxwork&sessionid='.session_id()); return redirect('http://web.lbschem.com:8088/?authkey=wxwork&sessionid='.session_id());
} }
} }
}
return redirect('http://web.lbschem.com:8088/'); return redirect('http://web.lbschem.com:8088/');
} }
} }

@ -31,7 +31,7 @@ class Customer extends ApiCommon
{ {
$action = [ $action = [
'permission' => ['exceldownload', 'setfollow', 'delete'], 'permission' => ['exceldownload', 'setfollow', 'delete'],
'allow' => ['read', 'system', 'count', 'poolauthority', 'level'] 'allow' => ['read', 'system', 'count', 'poolauthority', 'level','type']
]; ];
Hook::listen('check_auth', $action); Hook::listen('check_auth', $action);
$request = Request::instance(); $request = Request::instance();
@ -1195,7 +1195,7 @@ class Customer extends ApiCommon
* @since 2021-03-29 * @since 2021-03-29
* @author fanqi * @author fanqi
*/ */
public function Type() public function type()
{ {
$data = db('admin_field')->where(['types' => 'crm_customer', 'field' => 'crm_lthugd'])->value('options'); $data = db('admin_field')->where(['types' => 'crm_customer', 'field' => 'crm_lthugd'])->value('options');

@ -777,7 +777,7 @@ class Business extends Common
"status_id", "status_id",
'COUNT(*)' => 'count', 'COUNT(*)' => 'count',
'SUM(`money`)' => 'sum', 'SUM(`money`)' => 'sum',
'type_id' // 'type_id'
]) ])
->where($where) ->where($where)
->whereNotIn('is_end', '3') ->whereNotIn('is_end', '3')

@ -155,15 +155,16 @@ class Customer extends Common
}); });
}; };
} }
// 过滤角色
// 过滤角色
$groupIds = db('admin_access')->where("user_id", array("eq", $user_id))->column("group_id"); $groupIds = db('admin_access')->where("user_id", array("eq", $user_id))->column("group_id");
if (!in_array(1,$groupIds)){ if (!in_array(1,$groupIds)){
$groupNameArray = db('admin_group')->where("pid", array("eq", 2))->where("id", array("in", $groupIds))->column("title"); $groupNameArray = db('admin_group')->where("pid", array("eq", 2))->where("id", array("in", $groupIds))->column("title");
if ($groupNameArray) if ($groupNameArray){
$map['customer.crm_lthugd'] = array('in', $groupNameArray); $map['customer.crm_lthugd'] = array('in', $groupNameArray);
} }
}
# 代办事项 - 待进入公海 # 代办事项 - 待进入公海
$remindWhere = []; $remindWhere = [];
if ($is_remind) { if ($is_remind) {
@ -300,8 +301,8 @@ class Customer extends Common
} }
} }
$data = []; $data = [];
$data['list'] = $list ?: [];
$data['dataCount'] = $dataCount ?: 0; $data['dataCount'] = $dataCount ?: 0;
$data['list'] = $list ?: [];
return $data; return $data;
} }

@ -7,9 +7,9 @@ return [
// 数据库名 // 数据库名
'database' => 'wkcrm', 'database' => 'wkcrm',
// 用户名 // 用户名
'username' => 'wkcrm', 'username' => 'root',
// 密码 // 密码
'password' => 'YNKdaMS2XBHKcAh7', 'password' => '123123',
// 端口 // 端口
'hostport' => '3306', 'hostport' => '3306',
// 连接dsn // 连接dsn

Loading…
Cancel
Save