master
ELF 4 years ago
parent be3f92b0cf
commit c6cb289af0

@ -500,12 +500,16 @@ class BaseController extends RestController{
public function getMarketAdminId($promoteId)
{
\Think\Log::record("SPEND_PROMOTE_STEP2:" . $promoteId);
$promote = M('promote', 'tab_')->field(['id', 'chain', 'level', 'admin_id'])->where(['id' => $promoteId])->find();
$marketAdminId = 0;
if ($promote) {
\Think\Log::record("SPEND_PROMOTE_STEP3:" . $promote['id']);
$topPromote = (new PromoteService)->getTopPromote($promote);
\Think\Log::record("SPEND_PROMOTE_STEP4:" . $topPromote['id']);
$marketAdminId = $topPromote['admin_id'];
}
\Think\Log::record("SPEND_PROMOTE_STEP5:" . $marketAdminId);
return $marketAdminId;
}
@ -513,6 +517,7 @@ class BaseController extends RestController{
*消费记录表 参数
*/
private function spend_param($param=array()){
\Think\Log::record("SPEND_PROMOTE_STEP1:" . $user_entity["promote_id"]);
$user_entity = get_user_entity($param['user_id']);
$data_spned['user_id'] = $param["user_id"];
$data_spned['user_account'] = $user_entity["account"];

Loading…
Cancel
Save