优化是否结算参数

master
chenzhi 4 years ago
parent 2890f3e820
commit e7cd32b2a2

@ -11,10 +11,6 @@ use User\Api\UserApi as UserApi;
class SpendController extends ThinkController
{
const model_name = 'Spend';
const IsCheckStr=[
"1"=>"是",
"2"=>"否"
];
public $OpAuthList;
public function lists()
@ -156,7 +152,7 @@ class SpendController extends ThinkController
foreach ($data['data'] as $key=>&$value ) {
($value['promote_account']=='官方渠道')?($value['promote_account']=C('OFFICIEL_CHANNEL')):'';
$value['market_admin_username'] = $adminUsernameList[$value['market_admin_id']] ?? '无';
$value['is_check_str'] = self::IsCheckStr[$value['is_check']];
$value['is_check_str'] = D(self::model_name)::IsCheckStr[$value['is_check']];
}
$this->assign('showMarketAdmin', session('user_auth')['show_market_admin']);
$this->assign('showPromote', session('user_auth')['show_promote']);

@ -22,6 +22,10 @@ class SpendModel extends Model
/* 自动验证规则 */
protected $_validate = array();
const IsCheckStr=[
"1"=>"是",
"2"=>"否"
];
/* 自动完成规则 */
protected $_auto = array(

Loading…
Cancel
Save