签约房-签约师傅每日返还任务-调试
This commit is contained in:
@@ -144,7 +144,7 @@ class DailyTasks extends Model
|
|||||||
if($v['task_id'] == 17){
|
if($v['task_id'] == 17){
|
||||||
if($user_sign_task['status'] == 0){
|
if($user_sign_task['status'] == 0){
|
||||||
$v['task_status'] = 2;
|
$v['task_status'] = 2;
|
||||||
$v['task_type_str'] = "领取金币";
|
$v['task_type_str'] = "领取钻石";
|
||||||
}else{
|
}else{
|
||||||
$v['task_status'] = 3;
|
$v['task_status'] = 3;
|
||||||
$v['task_type_str'] = "已领取";
|
$v['task_type_str'] = "已领取";
|
||||||
@@ -294,7 +294,7 @@ class DailyTasks extends Model
|
|||||||
$res = model('common/UserWallet')->change_user_money($user_id, $user_sign_task['value'], model('common/UserWallet')::MONEYTYPEARNINGS, model('common/UserWallet')::SIGN_MASTER_DAILY_RETURN,model('common/UserWallet')::ChangeTypeLable(model('common/UserWallet')::SIGN_MASTER_DAILY_RETURN)." 第".$user_sign_task['times']."天");
|
$res = model('common/UserWallet')->change_user_money($user_id, $user_sign_task['value'], model('common/UserWallet')::MONEYTYPEARNINGS, model('common/UserWallet')::SIGN_MASTER_DAILY_RETURN,model('common/UserWallet')::ChangeTypeLable(model('common/UserWallet')::SIGN_MASTER_DAILY_RETURN)." 第".$user_sign_task['times']."天");
|
||||||
if ($res['code'] != 1) {
|
if ($res['code'] != 1) {
|
||||||
Db::rollback();
|
Db::rollback();
|
||||||
return ['code' => 0, 'msg' => $reslut['msg'], 'data' => null];
|
return ['code' => 0, 'msg' => $res['msg'], 'data' => null];
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
Db::rollback();
|
Db::rollback();
|
||||||
@@ -311,7 +311,7 @@ class DailyTasks extends Model
|
|||||||
$res = model('common/UserWallet')->change_user_money($user_id, $user_daily_tasks['gold_reward'], model('common/UserWallet')::MONEYTYPECOIN, model('common/UserWallet')::DAILY_TASKS_REWARD,model('common/UserWallet')::ChangeTypeLable(model('common/UserWallet')::DAILY_TASKS_REWARD)."( ".$task_info['task_name'].")");
|
$res = model('common/UserWallet')->change_user_money($user_id, $user_daily_tasks['gold_reward'], model('common/UserWallet')::MONEYTYPECOIN, model('common/UserWallet')::DAILY_TASKS_REWARD,model('common/UserWallet')::ChangeTypeLable(model('common/UserWallet')::DAILY_TASKS_REWARD)."( ".$task_info['task_name'].")");
|
||||||
if ($res['code'] != 1) {
|
if ($res['code'] != 1) {
|
||||||
Db::rollback();
|
Db::rollback();
|
||||||
return ['code' => 0, 'msg' => $reslut['msg'], 'data' => null];
|
return ['code' => 0, 'msg' => $res['msg'], 'data' => null];
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
Db::rollback();
|
Db::rollback();
|
||||||
|
|||||||
@@ -177,7 +177,8 @@ class UserWallet extends Model
|
|||||||
self::NOBILITY_PURCHASE_COIN => '爵位购买赠送(金币)',
|
self::NOBILITY_PURCHASE_COIN => '爵位购买赠送(金币)',
|
||||||
self::SIGN => '签约支出',
|
self::SIGN => '签约支出',
|
||||||
self::SIGN_FAILURE => '签约失败退回',
|
self::SIGN_FAILURE => '签约失败退回',
|
||||||
self::FIRST_SIGN_INCOME => '首次被签约收入'
|
self::FIRST_SIGN_INCOME => '首次被签约收入',
|
||||||
|
self::SIGN_MASTER_DAILY_RETURN => '签约师傅每日返还'
|
||||||
];
|
];
|
||||||
if($type){
|
if($type){
|
||||||
return $status[$type] ?? '';
|
return $status[$type] ?? '';
|
||||||
|
|||||||
Reference in New Issue
Block a user