_getSelfMysql(), 't_diamond_consume_product', array( 'account_id' => myself()->_getAccountId(), 'passport_address' => myself()->_getAddress(), 'type' => self::CONSUME_TYPE, 'amount' => $amount, 'source' => 0, 'createtime' => myself()->_getNowTime(), 'modifytime' => myself()->_getNowTime(), ) ); } public static function addProductRecord($amount){ SqlHelper::insert (myself()->_getSelfMysql(), 't_diamond_consume_product', array( 'account_id' => myself()->_getAccountId(), 'passport_address' => myself()->_getAddress(), 'type' => self::PRODUCT_TYPE, 'amount' => $amount, 'source' => 0, 'createtime' => myself()->_getNowTime(), 'modifytime' => myself()->_getNowTime(), ) ); } }