@ -621,7 +621,7 @@ function getPromoteCompany()
->field('id,company_name')
->where("status = 1")
->select();
array_unshift($list,array("id"=>0,"company_name"=>"万盟天下科技"));//默认0
array_unshift($list,array("id"=>0,"company_name"=>C(DEFAULT_COMPANY)));//默认0
return $list;
}
@ -110,5 +110,6 @@ return array(
'TMPL_ACTION_ERROR' => MODULE_PATH.'View/Public/error.html', // 默认错误跳转对应的模板文件
'TMPL_ACTION_SUCCESS' => MODULE_PATH.'View/Public/success.html', // 默认成功跳转对应的模板文件
'TMPL_EXCEPTION_FILE' => MODULE_PATH.'View/Public/exception.html',// 异常页面的模板文件
/*默认公司名称*/
'DEFAULT_COMPANY'=>"海南万盟天下科技有限公司",
);
@ -2,10 +2,11 @@
namespace Admin\Controller;
class FinancePromoteController extends AdminController
{
public $COMPANY_NAME = "万盟天下科技";
public $COMPANY_NAME = "";
public function _initialize()
parent::_initialize();
$this->COMPANY_NAME =C(DEFAULT_COMPANY);
// echo "<pre>";
public function index($p=1)
@ -1891,7 +1891,7 @@ class QueryController extends ThinkController
$records = [];
if (!empty($promotes)) {
foreach ($promotes as $promote) {
$promote['company_name'] = ($companyList[$promote['company_id']] ? $companyList[$promote['company_id']] : ($promote['company_id'] == 0 ? '万盟天下科技' : '未知'));
$promote['company_name'] = ($companyList[$promote['company_id']] ? $companyList[$promote['company_id']] : ($promote['company_id'] == 0 ? C(DEFAULT_COMPANY) : '未知'));
if ($promote['auto_review_withdraw_status'] == 0) {
$className = 'auto-closed';
$text = '关闭';
@ -43,9 +43,9 @@ class StatementMangementController extends ThinkController
if ($_REQUEST['company_id']) {
$map['company_name'] = $_REQUEST['company_id'];
if ($_REQUEST['company_id']=='万盟天下科技') {
$map['company_name'] = '海南万盟天下科技有限公司';
// if ($_REQUEST['company_id']=='万盟天下科技') {
// $map['company_name'] = '海南万盟天下科技有限公司';
// }
$data = M("statement","tab_")
@ -44,7 +44,7 @@
<td class="r">
<select name="company_id" id="company_id">
<option value="-1">请选择推广公司</option>
<option value="0">万盟天下科技</option>
<option value="0">{:C(DEFAULT_COMPANY)}</option>
<volist name="companys" id="vo">
<option value="{$vo.id}">{$vo.company_name}</option>
</volist>
@ -184,7 +184,7 @@
<if condition="$data['level'] != 1">
disabled style="background:#CCCCCC" </if>>
<option value="0" <?php echo (0 == $data['company_id'] ? 'selected':''); ?>>万盟天下科技</option>
<option value="0" <?php echo (0 == $data['company_id'] ? 'selected':''); ?>>{:C(DEFAULT_COMPANY)}</option>
<option value="{$vo.id}" <?php echo ($vo['id'] == $data['company_id'] ? 'selected':''); ?>